@charset "UTF-8";

/* ==========================================================================
   School Theme CSS
   Theme: Trust, Intellect, Tradition
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --c-primary: #dc3545;
    /* Brand Red */
    --c-secondary: #bb2d3b;
    /* Darker Red for hover */
    --c-accent: #ffc107;
    /* Warning Yellow/Gold */
    --c-text-main: #333333;
    --c-text-light: #555555;
    --c-bg-body: #f8f9fa;
    /* Light Gray Base */
    --c-bg-light: #f0f4f8;
    /* Pale Blue/Gray */
    --c-bg-content: #ffffff;
    --c-border: #dee2e6;

    /* Typography */
    --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;

    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 4rem;

    /* Layout */
    --width-max: 1200px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.8;
    color: var(--c-text-main);
    background-color: var(--c-bg-body);
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

figure {
    margin: 0;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

    

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--c-primary);
    line-height: 1.4;
    margin-bottom: var(--sp-sm);
}

h1 {
    font-size: 1.875rem;
    border-bottom: 2px solid var(--c-accent);
    padding-bottom: var(--sp-xs);
    margin-top: var(--sp-md);
}

h1.lp-heading {
    font-size: 2.375rem;
    font-family: var(--font-sans);
    border-bottom: none;
}

h2 {
    font-size: 1.625rem;
    padding: var(--sp-xs) var(--sp-sm);
    padding-left: var(--sp-xs);
    background: var(--c-bg-light);
    border-left: 5px solid var(--c-primary);
    margin-top: var(--sp-lg);
    margin-bottom: var(--sp-md);
}

h2+p {
    margin-bottom: 0;
}

h2.lp-heading {
    font-size: 2.125rem;
    font-family: 'Zen Maru Gothic', Arial, sans-serif;
    border-left: 0px solid var(--c-primary);
    border-bottom: 2px solid var(--c-primary);
    background: var(--c-bg-content);
    counter-reset: number 0;           /* number のカウンタを 0 にセット */
}


h3.lp-heading:before {
      counter-increment: number 1;      /* number カウンタの増加数をセット */
      content: counter(number) " ";      /* 表示形式を指定 */
    }

h3.lp-heading {
    font-size: 1.8rem;
    font-family: 'Zen Maru Gothic', Arial, sans-serif;
    border-bottom: 1px dotted var(--c-primary);
    margin-top: var(--sp-md);
    margin-bottom: var(--sp-sm);
}
    
h3 {
    font-size: 1.375rem;
    border-bottom: 1px dotted var(--c-primary);
    margin-top: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

h4,
h5,
h6 {
    margin-top: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.375rem;
    }
}

p,
ul,
ol,
dl,
table,
blockquote {
    margin-bottom: var(--sp-md);
}

ul,
ol {
    padding-left: var(--sp-md);
}

li {
    margin-bottom: var(--sp-xs);
}

dd {
    margin-left: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

/* --------------------------------------------------------------------------
   4. Layout Structure
   -------------------------------------------------------------------------- */
/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--width-max);
    height: 90px;
    margin: 0 auto;
    padding: var(--sp-xs) var(--sp-sm);
}

@media (min-width: 768px) {
    header {
        display: block;
    }

    .header-inner {
        padding: 0 var(--sp-sm);
    }
}

/* Logo */
header img.site-logo {
    width: auto;
    max-width: 200px;
    height: 50px;
    object-fit: contain;
}

@media (min-width: 768px) {
    header img.site-logo {
        height: 50px;
    }
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    max-width: var(--width-max);
    margin: 0 auto;
    padding: var(--sp-md) var(--sp-sm);
    background-color: var(--c-bg-content);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.02);
}

main.lp-main {
    flex: 1;
    width: 100%;
    max-width: var(--width-max);
    margin: 0 auto;
    padding: var(--sp-xs) var(--sp-xs);
    background-color: var(--c-bg-content);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.02);
    font-size: 16px;
}

section {
    margin-bottom: var(--sp-lg);
}

.content-article {
    margin-bottom: var(--sp-lg);
}

.single-column {
    grid-template-columns: 1fr;
    align-items: center;
}
