/* ===== サイト全体設定 ===== */
:root {
    --theme-color: #DDF4E6;
    --accent-color: #FFCECE;
    --font-family: "Noto Sans JP", sans-serif;
    --border-radius: 14px;
    --card-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--theme-color);
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================  Page Wrapper  ========================= */
.page-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    background-color: var(--theme-color);
}

.container {
    padding: 32px 0;
    width: 100%;
}


/* =============================  Hero  ============================= */
.hero {
    text-align: center;
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 4px solid white;
    box-shadow: var(--card-shadow);
}

.hero h1 {
    font-size: clamp(28px, 5vw, 40px);
    margin: 0 0 12px;
    font-weight: 700;
}

.hero p {
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
    display: inline-block;
}

/* ===========================  Sections  ============================ */
section {
    max-width: 480px;
    margin: 0 auto 48px;
}

.section-banner {
    position: relative;
    height: 120px;
    width: 100%;
    margin: 0 0 12px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-end;
    padding: 12px;
    box-shadow: var(--card-shadow);
}

.section-title {
    font-size: clamp(20px, 4vw, 28px);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
}

/* ============================  Cards  ============================== */
.card {
    width: 100%;
    max-width: 440px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-icon {
    flex: 0 0 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 絵文字アイコン用 */
.card-icon.emoji {
    font-size: 40px;
    line-height: 1;
}

/* 画像アイコン用 */
.card-icon .service-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-text h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
}

.card-text p {
    margin: 0;
    font-size: 15px;
    color: #333;
}

/* Card background colors */
.works .card { background-color: #E3F5FF; }

.works .section-banner {
    background-position: center 60%;
}
.about-me .card { background-color: #FFF3D6; }

.about-me .section-banner {
    background-position: center 90%;
}
.community .card { background-color: #F4E8FF; }
.contact .card { background-color: #FFEDED; }
