/*
Theme Name: Mine Work Sharing v8
Theme URI: https://mine-wakuwaku.jp/work-sharing/
Author: Mine Wakuwaku Work Sharing
Description: WordPress theme for Mine Work Sharing.
Version: 0.9.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: mine-worksharing
*/

:root {
    --ink: #2f342f;
    --muted: #68736a;
    --green: #65aa70;
    --deep-green: #2f7d50;
    --mint: #eaf7ea;
    --yellow: #ffe27a;
    --orange: #f6a44d;
    --sky: #c9ebf4;
    --pink: #ffd9cf;
    --paper: #fffdf6;
    --white: #fff;
    --line: #e7dec7;
    --shadow: 0 18px 45px rgba(82, 96, 68, .13);
    --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
    line-height: 1.85;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.35; letter-spacing: 0; }
p { margin: 0 0 14px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 253, 246, .95);
    border-bottom: 1px solid rgba(231, 222, 199, .8);
    backdrop-filter: blur(14px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 270px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(101, 170, 112, .25);
    font-weight: 800;
}
.brand strong {
    display: block;
    font-size: 18px;
}
.brand small {
    display: block;
    max-width: 360px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 800;
}
.site-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    color: #516056;
}
.site-nav a:hover { background: var(--mint); color: var(--deep-green); }

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, .96fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: center;
    min-height: 78vh;
    padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 84px) clamp(48px, 7vw, 82px);
    background:
        linear-gradient(180deg, rgba(255,253,246,.72), rgba(255,253,246,.96)),
        radial-gradient(circle at 12% 18%, rgba(255,226,122,.58), transparent 25%),
        radial-gradient(circle at 92% 18%, rgba(201,235,244,.9), transparent 32%),
        linear-gradient(135deg, #fff7d7 0%, #f2fbef 48%, #e7f7fb 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42px;
    background: repeating-linear-gradient(-45deg, rgba(101,170,112,.18) 0 12px, transparent 12px 24px);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--deep-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--yellow);
}
.hero h1 {
    max-width: 700px;
    color: #263229;
    font-size: clamp(28px, 3.8vw, 46px);
    font-weight: 900;
}
.lead {
    max-width: 720px;
    color: #4f5f54;
    font-size: 18px;
}
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 22px;
    border: 2px solid var(--deep-green);
    border-radius: 999px;
    background: var(--white);
    color: var(--deep-green);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(47, 125, 80, .12);
}
.button.primary, button {
    background: var(--deep-green);
    color: #fff;
}
.hero-visual {
    position: relative;
    min-height: 430px;
    border: 8px solid #fff;
    border-radius: 36px;
    background:
        linear-gradient(180deg, transparent 0 58%, rgba(101,170,112,.2) 58%),
        linear-gradient(135deg, #fff5bd 0%, #dff5e2 55%, #cceff8 100%);
    box-shadow: var(--shadow);
}
.hero-visual-image {
    min-height: auto;
    padding: 10px;
    background: #fff;
}
.hero-visual-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 26px;
    object-fit: cover;
}
.sun {
    position: absolute;
    top: 42px;
    right: 56px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 18px rgba(255,226,122,.28);
}
.person {
    position: absolute;
    bottom: 104px;
    width: 84px;
    height: 128px;
    border-radius: 44px 44px 18px 18px;
    background: var(--green);
}
.person::before {
    content: "";
    position: absolute;
    top: -48px;
    left: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #f7caa3;
}
.person-a { left: 74px; background: var(--orange); }
.person-b { right: 84px; background: var(--deep-green); }
.bridge {
    position: absolute;
    left: 130px;
    right: 140px;
    bottom: 132px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 16px 0 rgba(255,255,255,.6);
}
.label-card {
    position: absolute;
    right: 32px;
    bottom: 30px;
    padding: 18px 22px;
    border: 3px solid #fff;
    border-radius: 24px;
    background: rgba(255,255,255,.9);
    color: var(--deep-green);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.45;
    box-shadow: 0 12px 28px rgba(82,96,68,.12);
}

.intro-section, .workstyle-section, .flow-section, .content-band, .contact-band, .site-main {
    padding: clamp(48px, 7vw, 88px) clamp(18px, 6vw, 84px);
}
.section-heading {
    max-width: 920px;
    margin-bottom: 28px;
}
.section-heading.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2, .section-title h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
}
.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 28px;
    align-items: stretch;
}
.intro-copy {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
    font-size: 17px;
}
.note-box {
    padding: clamp(24px, 4vw, 38px);
    border: 4px solid #fff;
    border-radius: 28px;
    background: var(--mint);
    box-shadow: var(--shadow);
}
.note-box h3 { color: var(--deep-green); font-size: 25px; }

.workstyle-section {
    background:
        linear-gradient(180deg, rgba(234,247,234,.65), rgba(255,253,246,1)),
        repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,226,122,.16) 34px 35px);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}
.feature-card {
    position: relative;
    min-height: 300px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 18px 14px 22px;
    border: 4px solid #fff;
    border-radius: 28px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}
.feature-card:nth-child(3n+1) { background: #fff8cf; }
.feature-card:nth-child(3n+2) { background: #eaf7ea; }
.feature-card:nth-child(3n) { background: #e7f6fb; }
.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: var(--orange);
    font-size: 18px;
    font-weight: 900;
}
.feature-card h3 {
    margin: 0;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.5;
}
.work-illust {
    width: min(100%, 230px);
    aspect-ratio: 1 / 1;
    margin-bottom: 4px;
    padding: 10px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,.55);
    box-shadow: 0 10px 22px rgba(82, 96, 68, .12);
}
.work-illust img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 16px;
}

.flow-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.flow-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
}
.flow-card.workers { border-top: 10px solid var(--yellow); }
.flow-card.clients { border-top: 10px solid var(--sky); }
.flow-card h2 { font-size: clamp(25px, 3vw, 36px); }
.steps, .flow-steps {
    margin: 22px 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
}
.steps li, .flow-steps li {
    border: 1px solid var(--line);
    background: #fffdf6;
    font-size: 14px;
    font-weight: 900;
}
.steps li {
    min-height: 60px;
    padding: 10px;
    border-radius: 16px;
}
.steps li::before, .flow-steps li::before {
    counter-increment: step;
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--deep-green);
    color: #fff;
    font-size: 12px;
}
.flow-steps {
    position: relative;
    display: grid;
    gap: 12px;
    max-width: 560px;
}
.flow-steps::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 999px;
    background: rgba(101, 170, 112, .28);
}
.flow-steps li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    gap: 12px;
    padding: 12px 16px 12px 64px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(82, 96, 68, .08);
}
.flow-steps li::before {
    position: absolute;
    left: 10px;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(82, 96, 68, .12);
}

.content-band { background: var(--paper); }
.jobs-band { background: #fff8d8; }
.news-band { background: #f1fbf2; }
.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}
.section-title a {
    color: var(--deep-green);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.card-grid.listing { margin-top: 24px; }
.info-card {
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}
.info-card a { display: block; height: 100%; }
.info-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--mint);
}
.card-body { padding: 20px; }
.card-body time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.card-body h3 { font-size: 21px; }
.pill {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--deep-green);
    font-size: 12px;
    font-weight: 900;
}
dl { display: grid; grid-template-columns: 72px 1fr; gap: 4px 10px; margin: 0; }
dt { color: var(--muted); font-weight: 900; }
dd { margin: 0; }
.empty-message {
    grid-column: 1 / -1;
    padding: 24px;
    border: 3px dashed rgba(101,170,112,.35);
    border-radius: 24px;
    background: rgba(255,255,255,.7);
    font-weight: 800;
}

.contact-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: var(--deep-green);
}
.contact-band .eyebrow { color: #fff; }
.contact-band .eyebrow::before { background: var(--yellow); }
.contact-band h2 { font-size: clamp(24px, 3vw, 38px); }
.contact-band .button {
    border-color: #fff;
    background: #fff;
    color: var(--deep-green);
    box-shadow: none;
}

.page-hero {
    max-width: 860px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.page-hero h1, .single-content h1 { font-size: clamp(30px, 4vw, 52px); }
.narrow { max-width: 960px; margin: 0 auto; }
.single-content {
    padding: clamp(22px, 4vw, 40px);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}
.single-content img { margin: 22px 0; border-radius: 24px; }
.entry-content { font-size: 17px; }
.detail-list, .cta-box {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}
.cta-box { background: var(--mint); }
.mine-form {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}
.mine-form label {
    display: grid;
    gap: 6px;
    font-weight: 900;
}
.mine-form span {
    color: #d75b4d;
    font-size: 12px;
}
.mine-form input, .mine-form textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    font: inherit;
}
.notice-success {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 6px solid var(--deep-green);
    border-radius: 12px;
    background: var(--mint);
    font-weight: 900;
}
.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 34px clamp(18px, 6vw, 84px);
    color: #fff;
    background: #2f342f;
}
.site-footer p { margin: 4px 0; color: rgba(255,255,255,.78); }

@media (max-width: 980px) {
    .hero, .intro-grid, .flow-section { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .feature-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-card { min-height: 280px; }
    .work-illust { width: min(100%, 220px); }
}
@media (max-width: 720px) {
    .site-header, .site-footer, .contact-band {
        align-items: flex-start;
        flex-direction: column;
    }
    .site-nav ul { justify-content: flex-start; }
    .brand { min-width: 0; }
    .hero-visual { min-height: 330px; border-radius: 28px; }
    .hero-visual-image { min-height: auto; }
    .hero-visual-image img { min-height: 280px; }
    .person { transform: scale(.76); transform-origin: bottom center; }
    .person-a { left: 40px; }
    .person-b { right: 46px; }
    .bridge { left: 96px; right: 106px; }
    .label-card { font-size: 18px; }
    .feature-grid, .card-grid { grid-template-columns: 1fr; }
    .workstyle-section { padding-left: 14px; padding-right: 14px; }
    .feature-grid { gap: 14px; }
    .feature-card {
        min-height: auto;
        padding: 18px 14px 20px;
        border-radius: 24px;
    }
    .work-illust {
        width: min(100%, 210px);
        padding: 8px;
        border-radius: 20px;
    }
    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}
