/* ========================================
   全体
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #fff;
    color: #111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;

    line-height: 1.8;
}


/* ========================================
   共通コンテナ
   ブロック自体を中央配置
======================================== */

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


/* ========================================
   ヘッダー
======================================== */

header {
    width: 100%;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.header-inner {
    width: min(1100px, calc(100% - 40px));
    min-height: 70px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* ========================================
   サイトタイトル
======================================== */

.site-title {
    margin: 0;

    color: #111;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.08em;

    text-align: center;
}

.site-title a {
    color: #111;
    text-decoration: none;
}


/* ========================================
   ナビゲーション
   中央配置 + 縦線区切り
======================================== */

nav {
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    margin: 0;
    padding: 15px 0;

    list-style: none;
}

nav li {
    display: flex;
    align-items: center;
}

nav li + li::before {
    content: "｜";

    margin: 0 16px;

    color: #999;
    font-size: 13px;
}

nav a {
    color: #111;

    font-size: 14px;
    font-weight: 400;

    letter-spacing: 0.05em;

    text-decoration: none;

    transition: opacity 0.2s ease;
}

nav a:hover {
    opacity: 0.5;
}


/* ========================================
   メイン
   メインブロック自体を中央配置
======================================== */

main {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
}


/* ========================================
   セクション
======================================== */

section {
    width: 100%;
    margin: 60px auto;
}


/* ========================================
   見出し
   見出しは中央
======================================== */

h1,
h2,
h3,
h4 {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

h1 {
    margin-top: 0;
    margin-bottom: 40px;

    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

h2 {
    margin-top: 0;
    margin-bottom: 30px;

    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

h3 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 19px;
    font-weight: 600;
}

h4 {
    margin-top: 0;
    margin-bottom: 15px;

    font-size: 16px;
    font-weight: 600;
}


/* ========================================
   本文
   ★ ブロックは中央
   ★ 文字は左詰め
======================================== */

.content {
    width: min(800px, 100%);
    margin: 0 auto;

    text-align: left;
}

.content p {
    margin: 0 0 20px;

    text-align: left;
    line-height: 1.9;
}


/* ========================================
   記事本文
   ブロックは中央
   文章は左詰め
======================================== */

.article-content {
    width: min(800px, 100%);
    margin: 0 auto;

    text-align: left;
}

.article-content p {
    margin: 0 0 20px;

    text-align: left;
    line-height: 1.9;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;

    text-align: left;
}

.article-content li {
    margin-bottom: 8px;
}


/* ========================================
   記事一覧
======================================== */

.article-list {
    width: min(800px, 100%);
    margin: 0 auto;

    text-align: left;
}

.article-item {
    padding: 20px 0;

    border-bottom: 1px solid #ddd;

    text-align: left;
}

.article-item:first-child {
    border-top: 1px solid #ddd;
}

.article-item a {
    color: #111;
    text-decoration: none;
}

.article-item a:hover {
    opacity: 0.55;
}

.article-title {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 600;

    text-align: left;
}

.article-date {
    margin: 0;

    color: #777;
    font-size: 13px;

    text-align: left;
}


/* ========================================
   リンク一覧
   中央配置 + 縦線区切り
======================================== */

.link-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    width: 100%;

    margin: 30px auto;
    padding: 0;

    list-style: none;
}

.link-list li {
    display: flex;
    align-items: center;
}

.link-list li + li::before {
    content: "｜";

    margin: 0 15px;

    color: #999;
}

.link-list a {
    color: #111;

    font-size: 14px;

    text-decoration: none;
}

.link-list a:hover {
    opacity: 0.55;
}


/* ========================================
   ページネーション
======================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 40px auto;

    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    height: 36px;

    color: #111;

    border: 1px solid #ccc;

    text-decoration: none;

    font-size: 13px;
}

.pagination a:hover {
    background: #f5f5f5;
}


/* ========================================
   テーブル
======================================== */

.table-wrapper {
    width: min(900px, 100%);
    margin: 30px auto;

    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}

th,
td {
    padding: 12px 15px;

    border-bottom: 1px solid #ddd;

    text-align: left;
}

th {
    font-weight: 600;
    background: #f7f7f7;
}


/* ========================================
   フォーム
======================================== */

.form {
    width: min(700px, 100%);
    margin: 0 auto;

    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;

    text-align: left;
}

.form input,
.form textarea,
.form select {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #ccc;

    background: #fff;

    color: #111;

    font-family: inherit;
    font-size: 14px;
}

.form textarea {
    min-height: 180px;

    resize: vertical;
}

.form button {
    display: block;

    margin: 30px auto 0;
    padding: 10px 35px;

    border: 1px solid #111;

    background: #111;
    color: #fff;

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
}

.form button:hover {
    opacity: 0.75;
}


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

.btn {
    display: inline-block;

    padding: 10px 25px;

    border: 1px solid #111;

    background: #111;
    color: #fff;

    text-decoration: none;

    font-size: 14px;
}

.btn:hover {
    opacity: 0.7;
}


/* ========================================
   カード
======================================== */

.card-list {
    width: min(900px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    text-align: left;
}

.card {
    padding: 25px;

    border: 1px solid #ddd;

    text-align: left;
}

.card h3 {
    margin-top: 0;

    text-align: left;
}

.card p {
    margin-bottom: 0;

    text-align: left;
}


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

footer {
    width: 100%;

    margin-top: 80px;
    padding: 35px 20px;

    border-top: 1px solid #ddd;

    text-align: center;
}

.footer-inner {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
}

footer ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    margin: 0;
    padding: 0;

    list-style: none;
}

footer li {
    display: flex;
    align-items: center;
}

footer li + li::before {
    content: "｜";

    margin: 0 15px;

    color: #999;
}

footer a {
    color: #111;

    font-size: 13px;

    text-decoration: none;
}

footer a:hover {
    opacity: 0.55;
}

.copyright {
    margin: 20px 0 0;

    color: #777;

    font-size: 12px;

    text-align: center;
}


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

@media (max-width: 768px) {

    .container,
    .header-inner {
        width: calc(100% - 30px);
    }

    main {
        width: calc(100% - 30px);
    }

    section {
        margin: 45px auto;
    }

    h1 {
        margin-bottom: 30px;
        font-size: 27px;
    }

    h2 {
        margin-bottom: 25px;
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    nav ul {
        padding: 12px 0;
    }

    nav li + li::before {
        margin: 0 9px;
    }

    nav a {
        font-size: 13px;
    }

    .content,
    .article-content,
    .article-list {
        width: 100%;
    }

    .card-list {
        grid-template-columns: 1fr;
    }

    .table-wrapper {
        width: 100%;
    }
}


/* ========================================
   小さいスマートフォン
======================================== */

@media (max-width: 480px) {

    nav ul {
        row-gap: 5px;
    }

    nav li + li::before {
        margin: 0 6px;
    }

    nav a {
        font-size: 12px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .content p,
    .article-content p {
        font-size: 14px;
        line-height: 1.85;
    }

    footer li + li::before {
        margin: 0 7px;
    }
}


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

.site-logo {
    display: block;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0;

    color: #111;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-decoration: none;
}

.page-container {
    width: min(820px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 20px;
}

.page-container > h1 {
    margin: 0 0 44px;
    padding-bottom: 18px;
    border-bottom: 2px solid #222;
    font-size: 30px;
    line-height: 1.45;
    text-align: left;
}

.content-section {
    margin: 0 0 34px;
    padding: 0 0 28px;
    border-bottom: 1px solid #e5e7eb;
}

.content-section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.content-section h2 {
    margin: 0 0 16px;
    font-size: 21px;
    line-height: 1.5;
    text-align: left;
}

.content-section p {
    margin: 0 0 14px;
    color: #333;
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-section ul {
    margin: 0;
    padding-left: 22px;
    color: #333;
    text-align: left;
}

.content-section li {
    margin: 4px 0;
    line-height: 1.7;
}

.info-list {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    margin: 0;
    border-top: 1px solid #e5e7eb;
}

.info-list dt,
.info-list dd {
    margin: 0;
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.info-list dt {
    color: #555;
    font-weight: 700;
}

.info-list dd {
    color: #333;
    overflow-wrap: anywhere;
}

.contact-content {
    width: min(760px, 100%);
    margin: 0 auto;
    text-align: left;
}

.contact-content h1 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #222;
    font-size: 30px;
    line-height: 1.45;
    text-align: left;
}

.contact-intro {
    margin: 0 0 28px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.contact-form {
    display: grid;
    gap: 22px;
}

.contact-field {
    display: grid;
    gap: 7px;
}

.contact-field label {
    color: #222;
    font-size: 15px;
    font-weight: 700;
}

.contact-field label span {
    margin-left: 6px;
    color: #a21d16;
    font-size: 12px;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
    line-height: 1.6;
}

.contact-field textarea {
    min-height: 210px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 2px solid #cbd5e1;
    outline-offset: 1px;
    border-color: #555;
}

.contact-submit {
    justify-self: start;
    padding: 10px 28px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.contact-submit:hover {
    opacity: 0.75;
}

.contact-message {
    margin: 0 0 26px;
    padding: 16px 18px;
    border: 1px solid #ddd;
    background: #fafafa;
    text-align: left;
}

.contact-message h2 {
    margin: 0 0 10px;
    font-size: 20px;
    text-align: left;
}

.contact-message p {
    margin: 4px 0;
    text-align: left;
}

.contact-message-error {
    border-color: #e3aaa5;
    background: #fff8f7;
    color: #8a1c13;
}

.contact-message-error ul {
    margin: 0;
    padding-left: 20px;
}

.contact-message-success {
    background: #f7f7f7;
}

.contact-back-link {
    display: inline-block;
    margin-top: 16px;
    color: #111;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    width: 100%;
}

footer nav a {
    font-size: 13px;
}

footer p {
    margin: 18px 0 0;
    color: #777;
    font-size: 12px;
}

@media (max-width: 600px) {
    .site-logo {
        width: calc(100% - 30px);
        padding: 14px 0;
        font-size: 17px;
    }

    .page-container {
        width: calc(100% - 30px);
        padding-top: 32px;
    }

    .page-container > h1 {
        margin-bottom: 32px;
        padding-bottom: 12px;
        font-size: 25px;
    }

    .content-section {
        margin-bottom: 27px;
        padding-bottom: 22px;
    }

    .content-section h2 {
        font-size: 19px;
    }

    .content-section p,
    .content-section li {
        font-size: 14px;
    }

    .info-list {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .info-list dt,
    .info-list dd {
        padding: 10px 8px;
        font-size: 13px;
    }

    .contact-content h1 {
        margin-bottom: 14px;
        padding-bottom: 10px;
        font-size: 25px;
    }

    .contact-intro {
        margin-bottom: 22px;
        font-size: 14px;
    }

    .contact-form {
        gap: 17px;
    }

    .contact-field label {
        font-size: 14px;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 14px;
    }

    .contact-submit {
        width: 100%;
    }

    footer {
        margin-top: 52px;
        padding: 26px 15px;
    }

    footer nav {
        gap: 8px 14px;
    }

    footer nav a {
        font-size: 12px;
    }
}