/* 合同会社 殿家 のサイト共通のスタイル。和紙の生成り・墨・土壁の茶・朱の印を基調にする。 */
:root {
    --sumi: #2a2623;
    --muted: #6b6259;
    --line: #d9cfbf;
    --washi: #f6f1e7;
    --paper: #fbf8f2;
    --tsuchi: #7a5a3a;
    --shu: #b23a2b;
    --mincho: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", "HG明朝E", "MS P明朝", serif;
    --gothic: "Hiragino Sans", "ヒラギノ角ゴシック", "Yu Gothic", "YuGothic", "Noto Sans JP", "Meiryo", sans-serif;
    /* 青海波。上の段から順に描き、下の段が上の段の下半分を隠す。 */
    --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cg stroke='%237a5a3a' stroke-opacity='.28' stroke-width='1' fill='%23f6f1e7'%3E%3Cg id='s'%3E%3Ccircle r='20'/%3E%3Ccircle r='15'/%3E%3Ccircle r='10'/%3E%3Ccircle r='5'/%3E%3C/g%3E%3Cuse href='%23s' x='40'/%3E%3Cuse href='%23s' x='20' y='10'/%3E%3Cuse href='%23s' y='20'/%3E%3Cuse href='%23s' x='40' y='20'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    font-family: var(--gothic);
    color: var(--sumi);
    background: var(--washi);
    line-height: 1.9;
    letter-spacing: 0.02em;
    -webkit-text-size-adjust: 100%;
}

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

.inner {
    max-width: 56rem;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ---- ランディングページ ---- */

.lp-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    color: #fff;
    background:
        linear-gradient(rgba(20, 14, 8, 0.55), rgba(20, 14, 8, 0.35) 45%, rgba(20, 14, 8, 0.65)),
        url(../img/home.jpg) no-repeat center center / cover;
}

.lp-hero .name {
    text-align: center;
}

.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border: 3px solid var(--shu);
    border-radius: 6px;
    color: var(--shu);
    background: rgba(251, 248, 242, 0.92);
    font-family: var(--mincho);
    font-size: 1.9rem;
    line-height: 1;
}

.lp-hero h1 {
    font-family: var(--mincho);
    font-weight: 400;
    font-size: clamp(2.6rem, 8vw, 4.6rem);
    letter-spacing: 0.18em;
    margin: 1.25rem 0 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.lp-hero .en {
    font-family: var(--mincho);
    font-size: clamp(0.75rem, 2.4vw, 0.95rem);
    letter-spacing: 0.25em;
    opacity: 0.9;
    margin: 0;
}

/* 右上に縦書きの一文 */
.lp-hero .copy {
    position: absolute;
    top: 3.5rem;
    right: clamp(1.25rem, 6vw, 5rem);
    writing-mode: vertical-rl;
    font-family: var(--mincho);
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    letter-spacing: 0.35em;
    line-height: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.lp-hero .scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: var(--mincho);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-decoration: none;
    opacity: 0.85;
}

.lp-section {
    padding: 5.5rem 0;
}

.lp-section.alt {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    text-align: center;
    margin: 0 0 3rem;
}

.section-title h2 {
    font-family: var(--mincho);
    font-weight: 400;
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    letter-spacing: 0.2em;
    margin: 0;
}

.section-title .en {
    display: block;
    font-family: var(--mincho);
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    color: var(--tsuchi);
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 1px;
    margin: 1.25rem auto 0;
    background: var(--shu);
}

.lead {
    font-family: var(--mincho);
    font-size: clamp(1.05rem, 2.6vw, 1.2rem);
    line-height: 2.3;
    text-align: center;
    max-width: 38rem;
    margin: 0 auto;
}

/* 事業内容（壱・弐・参） */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 1.5rem;
}

.service {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--tsuchi);
    padding: 2rem 1.6rem 1.6rem;
}

.lp-section.alt .service { background: var(--washi); }

.service .num {
    font-family: var(--mincho);
    color: var(--shu);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
}

.service h3 {
    font-family: var(--mincho);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin: 0.4rem 0 1rem;
}

.service p { margin: 0 0 1rem; }

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tags li {
    font-size: 0.8rem;
    color: var(--tsuchi);
    border: 1px solid var(--line);
    padding: 0.1rem 0.6rem;
    background: var(--washi);
}

.lp-section.alt .tags li { background: var(--paper); }

.service .note { margin-top: 1rem; }

/* 仕事の進め方 */
.approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.approach li { text-align: center; }

.approach .kanji {
    display: block;
    font-family: var(--mincho);
    font-size: 2.6rem;
    line-height: 1.4;
}

.approach .kanji::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1px;
    margin: 0.6rem auto 0.9rem;
    background: var(--shu);
}

.approach p { margin: 0; }

.contact {
    text-align: center;
}

.contact .mail {
    display: inline-block;
    text-decoration: none;
    font-family: var(--mincho);
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    letter-spacing: 0.08em;
    margin-top: 1rem;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--tsuchi);
    background: var(--paper);
}

/* 区切りの青海波 */
.wave {
    height: 3rem;
    background: var(--seigaiha) repeat-x left bottom;
}

/* ---- 下層ページ ---- */

.page-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.page-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--mincho);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--sumi);
    text-decoration: none;
}

.page-header .brand .seal {
    width: 2rem;
    height: 2rem;
    font-size: 1.15rem;
    border-width: 2px;
    border-radius: 4px;
}

nav ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    font-family: var(--mincho);
    letter-spacing: 0.08em;
}

main.page section {
    padding: 3.5rem 0;
}

main.page section + section {
    border-top: 1px solid var(--line);
}

main.page h2 {
    font-family: var(--mincho);
    font-weight: 400;
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    margin: 0 0 1.5rem;
}

main.page h3 {
    font-family: var(--mincho);
    font-size: 1.15rem;
    margin: 2rem 0 0.5rem;
}

.card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--tsuchi);
    padding: 1.5rem;
    color: var(--sumi);
    text-decoration: none;
}

.card:hover { border-color: var(--tsuchi); }

.card .title {
    font-family: var(--mincho);
    font-size: 1.3rem;
    color: var(--tsuchi);
}

.card p { margin: 0.5rem 0 0; }

.nowrap { white-space: nowrap; }

/* プロダクトの一覧。アプリが増えたら横に並べる。 */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1rem;
}

/* 会社概要などの表 */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
}

th {
    width: 9em;
    color: var(--muted);
    font-weight: 400;
    font-family: var(--mincho);
    white-space: nowrap;
}

.table-scroll { overflow-x: auto; }

.steps { padding-left: 1.25rem; }

.note {
    color: var(--muted);
    font-size: 0.85rem;
}

/* 公開前に埋める箇所。埋めたらこの印ごと消す。 */
.todo {
    background: #fff3b0;
    color: #8a4b00;
    font-weight: 600;
    padding: 0 0.25em;
}

/* ---- フッター ---- */

footer {
    background: var(--sumi);
    color: #d8d0c4;
    padding: 2.5rem 0;
    font-size: 0.9rem;
}

footer .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

footer a {
    color: #f1ebe0;
    text-decoration: none;
    font-family: var(--mincho);
    letter-spacing: 0.08em;
}

footer a:hover { text-decoration: underline; }

footer .copyright {
    font-family: var(--mincho);
    letter-spacing: 0.08em;
}

@media (max-width: 34rem) {
    th { width: 6.5em; padding-right: 0.5rem; }
    .lp-section { padding: 4rem 0; }
    .lp-hero .copy { top: 2rem; }
}
