/* 全体の基本設定 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
}

.site-logo {
    height: 40px;
    width: auto;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    color: #222;
    background: #f5f5f7;
}

/* コンテナ */
.container {
    width: min(100% - 2.5rem, 960px);
    margin: 0 auto;
}

/* ヘッダー */
.site-header {
    background: #111827;
    color: #f9fafb;
    padding: 0.75rem 0;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
}

/* ここを明示的に左寄せ＆中央揃え解除 */
.brand {
    margin: 0;
    text-align: left;
    flex: 0 0 auto;  /* 幅は中身に合わせる */
}

.brand-logo {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    text-align: left;
    flex: 0 0 auto;  /* 幅は中身に合わせる */
}
.brand-tagline {
    font-size: 0.8rem;
    opacity: 0.8;
}

.site-nav a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

/* トップページ用 */
.top-page .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ヒーロー */
.hero {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(135deg, #1f2937, #111827);
    color: #f9fafb;
    text-align: left;
}

.hero-sub {
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 0.8rem;
}

.hero-lead {
    font-size: 0.95rem;
    opacity: 0.95;
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn.primary {
    background: #3b82f6;
    color: #f9fafb;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.btn.ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(229, 231, 235, 0.5);
}

.btn.ghost:hover {
    background: rgba(15, 23, 42, 0.6);
}

.btn.link-btn {
    padding-inline: 0;
    border: none;
    border-radius: 0;
    color: #3b82f6;
    background: none;
    box-shadow: none;
}

.btn.link-btn:hover {
    text-decoration: underline;
    transform: none;
}

/* セクション */
.section {
    padding: 2.5rem 0;
    background: #f5f5f7;
}

.section:nth-of-type(even) {
    background: #ffffff;
}

.section h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

/* カード */
.section-cards .cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.3rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* リスト */
.bullet-list {
    padding-left: 1.2rem;
    margin: 0.75rem 0 0;
}

.bullet-list li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.mini-list {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
}

.mini-list li {
    margin-bottom: 0.2rem;
}

/* 小さな注釈 */
.note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* バッジ */
.badge {
    display: inline-flex;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    margin-top: 0.6rem;
}

/* アクセントセクション */
.section-accent {
    background: #eff6ff;
}

.contact-info {
    margin-top: 0.5rem;
}

.contact-info a {
    color: #2563eb;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* フッター */
.site-footer {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    background: #7b2430;   /* ロゴ右下の赤系 */
    color: #f9fafb;
}

/* レスポンシブ */
@media (min-width: 720px) {
    .section-cards .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        text-align: left;
    }
}

/* お問い合わせフォーム用 */
.contact-form {
    max-width: 640px;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font: inherit;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.contact-form .btn.primary {
    align-self: flex-start;  /* ボタンを左寄せにする */
    margin-top: 0.5rem;
}

.back-home {
    margin-top: 20px;
    text-align: center;
}

.back-home a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.back-home a:hover {
    opacity: 0.8;
}

@media (max-width: 720px) {
    .container {
        width: 100%;
        margin: 0;
        padding-inline: 1rem;  /* 文章が端にくっつきすぎないようにお好みで */
    }
}

