:root {
    --primary-color: #00a33d;
    --primary-dark: #195931;
    --primary-light: #f7fbf5;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fbfbfb;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --border-color: #e7cfab;
    --transition: all 0.3s ease;
}

body{
    background-color: var(--bg-color);
    padding: 0px;
    margin: 0;
}
*{
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, h7{
    font-family: 'Murecho', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
    font-weight: 600;
    line-height: 1.4;
}
h1{
    font-size: 1.75em;
    font-weight: 700;
}
h2{
    margin-top:2em;
    font-size: 1.4em;
    font-weight: 600;
}

.section-title {
    display: flex;
    /*align-items: baseline;*/
    gap: 0.6em;
    margin-top: 2em;
    line-height: 1.4;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.1em;
    position: relative;
    top: 0.05em;
}

.section-icon svg {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}
h3{
    font-size: 1.2em;
    font-weight: 600;
}
div#container{
    margin: 0 auto;
    padding: 2em 4em 5em 4em;
    width: fit-content;
    height: fit-content;
    max-width: 800px;
    background-color: var(--card-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
header div#title{
    text-align: center;
    font-family: 'Murecho', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}
header div#title svg{
    width: 64px;
    height: 64px;
    display: block;
    margin: 0 auto 10px auto;
}
header div#title img{
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
}
header ul.sns svg{
    width: 32px;
    height: 32px;;
}
header ul.sns{
    list-style: none;
    display: block;
    padding: 0px;
    margin: 10px 0 0 0;
    text-align: center;
}
header ul.sns li{
    display: inline-block;
    padding: 0px;
    margin: 5px;
}
section{
    /*border-top: 1px #fb6 solid;*/
    margin-top:3em;
}
section#doc{
    margin-top:1em;
}

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(0, 163, 61, 0.15) 50%, rgba(0, 163, 61, 0.05) 100%);
    border-radius: 16px;
    padding: 4em 2em;
    margin: 2em 0 3em 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 163, 61, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 163, 61, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 163, 61, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 163, 61, 0.03) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 163, 61, 0.02) 2px,
            rgba(0, 163, 61, 0.02) 4px
        );
    pointer-events: none;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 1.2em 0;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.hero-description {
    font-size: 1.15em;
    color: var(--text-color);
    margin: 0 0 1em 0;
    line-height: 1.9;
    font-weight: 400;
}

.hero-subdescription {
    font-size: 1em;
    color: var(--text-light);
    margin: 0 0 2em 0;
}

.hero-cta {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2em;
}

.cta-button {
    display: inline-block;
    padding: 0.8em 2em;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 163, 61, 0.3);
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-button-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* カード型レイアウト */
.service-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2em;
    margin: 1.5em 0;
    box-shadow: 0 2px 8px var(--card-shadow);
    border: 1px solid rgba(0, 163, 61, 0.1);
}

.service-card p {
    line-height: 1.8;
    margin: 0.8em 0;
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.25em;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--primary-light);
    font-weight: 600;
}

.service-card h3:first-child {
    margin-top: 0;
}

.ai-section {
    background-color: var(--primary-light);
    padding: 1.5em;
    border-radius: 8px;
    margin: 1.5em 0;
    border-left: 4px solid var(--primary-color);
}

.ai-section h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.service-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8em;
}

.service-list li {
    padding: 0.8em 1em;
    background-color: var(--primary-light);
    border-radius: 6px;
    position: relative;
    padding-left: 2em;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0.8em;
    color: var(--primary-color);
    font-weight: bold;
}
div#sitelink{
    text-align: center;
    margin-top: 2em;
}
div#container div.ide{
    display: block;
    width: 600px;
    min-height: 300px;
    margin: 1em auto;
    padding: 0;
    position: relative;
}
div#container div.ide div.pics{
    padding: 0px;
    text-align: center;
    margin: 0;
    width: 300px;
    max-height: 300px;
    overflow: hidden;
    display: block;
    float: left;
}
div#container div.ide div.pics img{
    margin: 0;
    object-fit: contain;
    width: auto;
    height: 300px;
}
div#container div.ide div.name{
    display: block;
    float: right;
    width: 280px;
    height: auto;
    margin: calc(150px - 2em) 0 0 0;
    font-size: 1.2em;
    font-weight: 700;
}
div#container div.ide div.name span.title{
    font-size: .8em;
    font-weight: normal;
    display: block;
}
div#container div.ide div.pics img.prof{
    height: 280px;
    border-radius: 4%;
}
div#container div.app{
    display: block;
    width: auto;
    min-height: 96px;
    margin: 1em auto;
    padding: 0;
    position: relative;
}
div#container div.app div.pics{
    padding: 0px;
    text-align: center;
    margin: 0;
    width: auto;
    max-height: 96px;
    overflow: hidden;
    display: block;
    float: left;
}
div#container div.app div.pics img{
    margin: 0;
    object-fit: contain;
    width: auto;
    height: 96px;
}
div#container div.app div.name{
    display: block;
    float: left;
    width: auto;
    height: auto;
    margin: calc(96px / 2 - 1em) 0 0 1em;
    font-size: 1.2em;
    font-weight: 700;
}
hr{
    height: 1px;
    background-color: var(--border-color);
    border: none;
    margin: 2em 0;
}
a.toplay img{
    width: 200px;
    max-width: 100%;
    height: auto;
}
div#container div.movs, div#container div.imgs {
    padding: 0px;
    text-align: center;
    margin: 10px 0;
    width: auto;
    max-height: 560px;
    overflow: hidden;
}
/* 画像のアスペクト比を維持（レスポンシブ対応） */
div#container div.imgs img,
div#container div.movs img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.center{
    text-align: center;
}
a:not(header a){
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

a:not(header a):hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
header a{
    text-decoration: none;
}
nav ul{
    display: block;
    width: inherit;
    text-align: center;
    padding: 0;
}
nav ul li{
    display: inline-block;
    padding: 0px;
    margin: 6px;
}
nav ul li a{
    display: block;
    padding: 3px 1.5em;
    margin: 0px;
    border-bottom: 2px solid var(--primary-color);
    text-decoration: none;
    color: #463333;
    min-width: 65px;
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a[aria-current="page"] {
    background-color: var(--primary-light);
    border-bottom-color: var(--primary-dark);
    color: var(--primary-dark);
}
ul.pagenav{
    display: block;
    border: 1px solid rgba(0, 163, 61, 0.2);
    padding: 1em 3em;
    border-radius: 10px;
    background-color: var(--primary-light);
    box-shadow: 0 2px 4px var(--card-shadow);
}
ul.pagenav li {
    margin: 0.5em 0;
}
ul.pagenav li a{
    text-decoration: none;
    font-size: .9em;
    color: var(--primary-dark);
    transition: var(--transition);
    display: inline-block;
    padding: 0.3em 0;
}

ul.pagenav li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}
table.apps td{
    vertical-align: top;
}
table.apps td.icon{
    max-width: 150px;
}
table.apps td.icon img{
    width: -webkit-fill-available;
    height: -webkit-fill-available;
}
span.caption{
    display: block;
    font-size: .8em;
    margin: .3em auto 1em auto;
}
footer{
    margin-top: 4em;
    padding-top: 2em;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9em;
    color: var(--text-light);
}
footer ul{
    list-style: none;
    padding: 0;
    margin: 1em 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em;
}
footer ul li{
    display: inline-block;
}
footer ul li a{
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}
footer ul li a:hover{
    text-decoration: underline;
    color: var(--primary-dark);
}
footer p{
    margin: 1em 0 0 0;
}
@media screen and (max-width: 600px) {
    *{
        font-size: 13px;
    }
    div#container{
        padding: 2em 20px 5em 20px;
        width: 100%;
        max-width: 100%;
    }
        div#container div.movs, div#container div.imgs {
        width: calc(100vw - 40px);
        max-width: 100%;
    }
    nav ul li a{
        min-width: 60px;
    }
    img{
        max-width: 100%;
        height: auto;
    }
    iframe{
        width: -webkit-fill-available;
        max-width: 100%;
    }
    div#container div.pics img.prof{
        height: 200px;
    }
    table.apps td.icon{
        max-width: 100px;
    }

    div#container div.ide{
        width: auto;
        margin: 1em auto .5em auto;
        text-align: center;
    }
    div#container div.ide div.pics{
        float: none;
        display: inline-block;
    }
    div#container div.ide div.name{
        float: none;
        display: inline-block;
        margin: 0 0 1em 0;
        text-align: center;
    }
    footer ul{
        flex-direction: column;
        gap: 0.5em;
    }
    .service-card {
        padding: 1.5em;
        margin: 1em 0;
    }
    .service-list {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 2.5em 1.5em;
        margin: 1.5em 0 2em 0;
    }
    .hero-title {
        font-size: 1.5em;
    }
    .hero-description {
        font-size: 1em;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-button {
        width: 100%;
        text-align: center;
    }
    .section-icon {
        width: 28px;
        height: 28px;
    }
    .section-title {
        gap: 0.5em;
    }
}