/*
Theme Name: Kashiwazaki SEO LP Theme
Theme URI: https://www.tsuyoshikashiwazaki.jp/
Author: 柏崎剛
Author URI: https://www.tsuyoshikashiwazaki.jp/
Description: 指定した固定ページをトップページに表示する簡易的なランディングページ用テーマです。ヘッダーとフッターの簡単なカスタマイズが可能です。
Version: 1.1 /* Version bumped */
License: GNU General Public License v2 or later License URI: http: //www.gnu.org/licenses/gpl-2.0.html
Tags: landing-page,
one-column,
custom-header,
custom-footer,
theme-options Text Domain: kashiwazaki-seo-lp-theme */

/* 基本的なリセットとスタイル */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    /* 基本の文字色 */
    background-color: #fff;
    /* 基本の背景色 */
}

a {
    color: #0073aa;
    /* WordPress標準のリンク色に合わせる */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* レイアウト */
.container {
    max-width: 960px;
    /* コンテンツの最大幅 */
    margin: 0 auto;
    /* 中央揃え */
    padding: 0 15px;
    width: 100%;
    /* Ensure container takes available width */
    box-sizing: border-box;
}

/* ヘッダー */
.site-header {
    padding: 1em 0;
    background-color: var(--kslp-header-bg-color, #f8f9fa);
    /* デフォルト色 */
    color: var(--kslp-header-text-color, #333);
    /* デフォルト色 */
    border-bottom: 1px solid #e5e5e5;
}

.site-header .container {
    display: flex;
    /* ロゴとサイトタイトルを横並びにする場合など */
    justify-content: space-between;
    /* 必要に応じて調整 */
    align-items: center;
}

.site-title a,
.site-description {
    color: var(--kslp-header-text-color, #333);
    text-decoration: none;
}

.site-title {
    margin: 0;
    font-size: 1.8em;
}

.site-description {
    margin: 0;
    font-size: 0.9em;
}

/* カスタムロゴ */
.custom-logo-link img {
    max-height: 60px;
    /* ロゴの最大高さを指定 */
    width: auto;
}


/* メインコンテンツエリア */
.site-content {
    padding: 2em 0;
    /* 上下のpadding */
}

/* index.php, singular.php 用 (containerはPHP側で追加) */
#primary .site-main>.container {
    /* Styles specific to container within main if needed */
}

/* front-page.php 用 (containerはmain要素に追加) */
#primary.container {
    /* Styles specific to container on main if needed */
}


/* LPコンテンツ（front-page.phpで使用）*/
.lp-content-area {
    /* Specific styles for LP area if needed */
}

.entry-content {
    /* Basic entry content styles */
}

/* タイトル表示制御 */
.page .entry-title,
.single .entry-title {
    /* display: none; */
    /* 必要であればコメント解除 */
}

.front-page .entry-title {
    display: none;
    /* LPではタイトルを非表示にする */
}

.home:not(.page) .page-title {
    /* ブログ投稿一覧のタイトル */
    margin-bottom: 1.5em;
}


/* フッター */
.site-footer {
    margin-top: 2em;
    padding: 1.5em 0;
    background-color: var(--kslp-footer-bg-color, #343a40);
    /* デフォルト色 */
    color: var(--kslp-footer-text-color, #fff);
    /* デフォルト色 */
    font-size: 0.9em;
    text-align: center;
}

.site-footer a {
    color: var(--kslp-footer-text-color, #fff);
}

.site-info p {
    margin: 0.5em 0;
}

/* WordPress Core Block Styles (optional but good for compatibility) */
.wp-block-button__link {
    /* Example: Style core buttons */
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #eee;
    z-index: 100000;
    padding: 8px;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}


/* Block Editor Alignment Overrides for Front Page */
/* -------------------------------------------------------------------------- */

/* Force container width even for alignwide/alignfull blocks on the front page */
body.home.page .entry-content>.alignwide,
body.home.page .entry-content>.alignfull {
    max-width: 960px !important;
    /* Force max-width matching .container */
    width: 100% !important;
    /* Ensure it fills the container */
    margin-left: auto !important;
    margin-right: auto !important;
    /* Reset negative margins potentially added by alignfull */
    margin-top: revert;
    margin-bottom: revert;
}

/* Ensure direct children of entry-content also respect container */
body.home.page .entry-content>* {
    max-width: 100%;
    /* Allow filling the container, but not exceeding it */
}

/*--------------------------------------------------------------
2.0 Globals
--------------------------------------------------------------*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
}

.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/*--------------------------------------------------------------
3.0 Header
--------------------------------------------------------------*/
.site-header {
    background-color: var(--kslp-header-bg-color, #f8f9fa);
    padding: 1rem 0;
    border-bottom: 1px solid #e7e7e7;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    text-decoration: none;
    color: var(--kslp-header-text-color, #333333);
}

.custom-logo-link img {
    max-height: 100px;
    /* Adjust as needed */
    width: auto;
}


/*--------------------------------------------------------------
4.0 Content
--------------------------------------------------------------*/
.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    font-size: 2.5rem;
}

.entry-content {
    font-size: 1.1rem;
}

.post-thumbnail-container {
    margin-bottom: 2rem;
}

.post-thumbnail-container img {
    width: 100%;
    height: auto;
    display: block;
}

/*--------------------------------------------------------------
5.0 Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: var(--kslp-footer-bg-color, #343a40);
    color: var(--kslp-footer-text-color, #ffffff);
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    text-align: center;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
}
