/*
Theme Name: Uchino Survey Office
Theme URI: https://example.invalid/
Author: Custom theme for Uchino Office
Description: 土地家屋調査士・行政書士事務所向けの軽量なオリジナルテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: uchino-survey
*/

/* ========================================
   基本設定
======================================== */

:root {
    --navy: #18324b;
    --ink: #253446;
    --muted: #5d6a75;
    --pale: #f3f6f8;
    --line: #dce4e9;
    --accent: #b58c4c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    line-height: 1.9;
    background: #fff;
}

a {
    color: var(--navy);
}

a:hover {
    opacity: 0.82;
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin: auto;
}

/* ========================================
   ヘッダー・ナビゲーション
======================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    text-decoration: none;
    font-weight: 750;
    line-height: 1.5;
    font-size: 1.12rem;
}

.brand small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
}

.menu {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
}

/* ========================================
   トップページ・地券背景
======================================== */


.hero {
    background:
        linear-gradient(
            90deg,
            #132a40 0%,
            rgba(19, 42, 64, 0.65) 45%,
            rgba(19, 42, 64, 0.20) 100%
        ),
        url("https://masahiro-shizuoka.jp/wp-content/uploads/2026/10/chiken.jpg")
        right center / auto 90% no-repeat,
        #132a40;

    color: white;
    padding: 15px 0 20px;
}

.eyebrow {
    color: #d6bc8b;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.55rem);
    line-height: 1.4;
    margin: 15px 0 20px;
    letter-spacing: 0.035em;
}

.hero p {
    max-width: 710px;
    color: #e3eaf0;
    font-size: 1.04rem;
}

/* ========================================
   ボタン
======================================== */

.button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 4px;
    background: var(--navy);
    color: white;
    text-decoration: none;
    font-weight: 700;
    margin: 12px 12px 0 0;
}

.hero .button {
    background: white;
    color: var(--navy);
}

.button.outline {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}

/* ========================================
   コンテンツ
======================================== */

.section {
    padding: 75px 0;
}

.section.alt {
    background: var(--pale);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0 0 13px;
    color: var(--navy);
    line-height: 1.5;
}

.lead {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 35px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 1.18rem;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: start;
}

.quote {
    border-left: 4px solid var(--accent);
    padding: 12px 0 12px 24px;
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--navy);
}

/* ========================================
   固定ページ
======================================== */

.page-header {
    background: var(--pale);
    padding: 45px 0;
}

.page-header h1 {
    margin: 0;
    color: var(--navy);
}

.content {
    padding: 50px 0 85px;
    max-width: 800px;
}

.content h2 {
    color: var(--navy);
    margin-top: 2em;
}

.notice {
    padding: 16px 20px;
    background: #fff9eb;
    border-left: 3px solid var(--accent);
}

.wp-block-image img {
    height: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    background: white;
    padding: 10px;
    z-index: 100;
}

/* ========================================
   スマートフォン用地券画像
======================================== */

.chiken-mobile {
    display: none;
}

/* ========================================
   フッター
======================================== */

.site-footer {
    background: #142b40;
    color: #e8edf2;
    padding: 24px 0 10px;
}

.site-footer a {
    color: #e8edf2;
}

.site-footer small {
    color: #bccbd7;
}

/* 上段：事務所情報と連絡先 */

.footer-inner {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.15fr);
    gap: 48px;
    align-items: start;
}

.footer-inner > div:first-child {
    min-width: 0;
}

.footer-inner > div:first-child small {
    display: block;
    margin-top: 8px;
    line-height: 1.8;
}

.contact-lines {
    min-width: 0;
    font-size: 0.92rem;
}

.contact-lines p {
    margin: 0 0 5px;
    line-height: 1.65;
}

.contact-lines a {
    overflow-wrap: anywhere;
}

/* 下段：コピーライトとしまちゃん */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-top: 0;
    padding: 0;

    border: none;
}

.footer-bottom small {
    font-size: 0.75rem;
    line-height: 1.5;
}

.footer-bottom > a {
    display: block;
    flex-shrink: 0;
    margin-left: auto;
    line-height: 0;
}

.footer-shimaenaga {
    display: block;
    width: 85px;
    max-width: 100%;
    height: auto;
}

/* ========================================
   スマートフォン
======================================== */

@media (max-width: 750px) {

    /* ヘッダー */

    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .menu {
        gap: 10px 18px;
    }

    /* トップページ */

    .hero {
        padding: 66px 0;
        background: linear-gradient(
            125deg,
            #132a40,
            #294d67
        );
    }

    /* 地券画像 */

    .chiken-mobile {
        display: block;
        background: var(--pale);
        padding: 18px 20px 0;
        text-align: center;
    }

    .chiken-mobile img {
        display: block;
        width: 100%;
        max-width: 420px;
        height: auto;
        margin: 0 auto;
        border-radius: 3px;
    }

    /* コンテンツ */

    .section {
        padding: 52px 0;
    }

    .cards,
    .two-col {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 22px;
    }

    /* フッター */

    .site-footer {
        padding-top: 20px;
        padding-bottom: 8px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-lines {
        font-size: 0.9rem;
    }

    .footer-bottom {
        gap: 12px;
        margin-top: 4px;
    }

    .footer-bottom small {
        font-size: 0.7rem;
    }

    .footer-shimaenaga {
        width: 70px;
    }
}


/* お問い合わせフォームの入力欄 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5dc;
    border-radius: 5px;
    background: #fff;
    color: #253446;
    font: inherit;
    font-size: 16px;
    box-sizing: border-box;
}

/* ご相談内容は縦にも大きく */
.wpcf7 textarea {
    min-height: 220px;
    resize: vertical;
}

/* 項目名 */
.wpcf7 label {
    display: block;
    font-weight: 600;
}

/* 入力中の枠線 */
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: 2px solid #18324b;
    outline-offset: 1px;
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
    padding: 12px 36px;
    background: #18324b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.uchino-breadcrumb a {
    color: #5d6a75;
    text-decoration: none;
}

.uchino-breadcrumb a:hover {
    color: #18324b;
    text-decoration: underline;
}

.uchino-breadcrumb [aria-current="page"] {
    color: #253446;
}

@media (max-width: 600px) {
    .uchino-breadcrumb {
        margin: 12px auto 18px;
        padding: 0 16px;
        font-size: 12px;
    }
}