:root{
    --brand:#006aad;
    --accent:#ffb703;
    --bg:#f7fbff;
    --maxw:1100px;
    --radius:10px;
    --text:#222;
}
*{box-sizing:border-box}
body{
    margin:0;
    font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color:var(--text);
    background:white;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    line-height:1.6;
    background-image: url('../images/bg3.jpg') ;
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top left;
}
header.hero{
    background-image: url('../images/hero-placeholder.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* 左寄せ */
    text-align: left;
    padding: 0 16px;
    color: #000;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.wrap{max-width:var(--maxw); margin:0 auto; padding:24px;}
.hero h1{
    font-size: clamp(26px, 6vw, 60px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

header.hero p.lead {
    font-size: clamp(16px, 6vw, 20px);
    margin-top: 12px;
    line-height: 1.5;
    max-width: 820px;
    display: inline-block; /* 複数行対応 */
    background-color: rgba(255, 255, 255, 0.4); /* 半透明白 */
    padding: 4px 6px; /* 文字周りの余白 */
    border-radius: 4px; /* 少し丸くして柔らかい印象 */
}

/* CTAボタン */
.btn{
    display:inline-block;
    background:var(--accent);
    color:#000;
    padding:12px 20px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    margin-top:18px;
}

/* セクション */
section{padding:36px 16px;}
h2 {
    font-size: clamp(16px, 6vw, 20px);
    color: var(--brand);
    text-align: center;
    margin-bottom: 24px;
}

h2::before,
h2::after {
    content: "•";
    color: var(--brand);
    margin: 0 8px;
}
.grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    align-items:start;
}
.card{background:#fff; border-radius:8px; padding:18px; box-shadow:0 6px 18px rgba(0,0,0,0.06);}
.list{list-style:none; padding:0; margin:0;}
.list li{padding:10px 0; border-bottom:1px dashed #eee; font-size:15px;}
.list li:last-child{border-bottom:0}

/* フル幅の特徴 */
.hero-image{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:8px;
    margin-top:18px;
    background:linear-gradient(90deg,#e6f4ff, #f7fbff);
    display:block;
}

/* 流れ（ステップ） */
.steps{display:flex; gap:12px; flex-wrap:wrap; justify-content:center;}
.step{background:var(--bg); padding:16px; border-radius:10px; min-width:180px; text-align:center;}
.step b{display:block; font-size:20px; margin-bottom:6px; color:var(--brand);}

/* 画像つきカード */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-align: center;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 12px;
}

.card h3 {
    color: var(--brand);
    font-size: 18px;
    margin: 0 0 8px 0;
}

.card p {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}


/* フッター */
footer{padding:24px; text-align:center; font-size:13px; color:#666;}
.muted{color:#666; font-size:14px;}

/* レスポンシブ */
@media (max-width:880px){
    .grid{grid-template-columns:1fr}
    .hero-image{height:180px}
    header.hero {
        height: auto;
        padding: 40px 16px;
    }

    header.hero h1 {
        font-size: clamp(24px, 7vw, 48px);
    }

    header.hero p.lead {
        font-size: clamp(14px, 5vw, 18px);
    }
}

@media (max-width: 480px) {
    header.hero h1 {
        font-size: clamp(20px, 8vw, 36px);
    }

    header.hero p.lead {
        font-size: clamp(12px, 6vw, 16px);
    }

    header.hero .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* お悩み */
.problem{
    background-image: url('../images/problem.jpg');
    background-size: 100% auto;
    background-position: top left;
}
.problem-centered .problem-circle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 24px auto 0 auto;
    border: 3px solid #000;
    border-radius: 10px;
    background-color: #fff;
}

.problem-centered .center-image {
    height: 300px;
    margin: 0 20px;
}

.problem-centered .center-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.problem-centered .problem-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    max-width: 480px;
    background: #fff;
    border-radius: 8px;
    padding: 30px 0 30px;
}

.problem-centered .problem-list li {
    position: relative;
    padding: 12px 16px;
    font-size: clamp(20px, 5vw, 26px);
    font-family: "Kaisei Decol", serif;
    font-weight: 400;
    font-style: normal;
    writing-mode: vertical-rl;
    text-orientation: upright;
    white-space: normal; /* ←これで文章が途中で改行される */
    width: 100%;         /* 親要素の幅いっぱいに広げる */
    box-sizing: border-box;
}

@media(max-width: 880px){
    .problem-centered .problem-circle {
        flex-direction: column;
        align-items: center;
    }
    .problem-centered .problem-list {
        margin-left: 0;
        margin-top: 20px;
    }
    .problem-centered .problem-list li {
        position: relative;
        padding: 12px 2px;
    }
}
@media (max-width: 480px) {
    .problem-centered .problem-list li{
        margin-left: 0;
        font-size: 16px;
    }
}

/* おまかせください */
.solution {
    margin-top: 50px;
    margin-bottom: 50px;
}
.solution h2 {
    font-size: clamp(20px, 5vw, 28px);
    color: var(--brand);
    text-align: center;
    position: relative;
    margin-bottom: 50px;
}

/* 左右のスラッシュ風の装飾 */
.solution h2::before,
.solution h2::after {
    content: "/";
    color: var(--accent);
    margin: 0 10px;
    font-size: 24px;
    vertical-align: middle;
}

.solution-cards .cards {
}

.solution-cards .card {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--bg);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 3px solid #000;
    position: relative;
    padding: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
}

.solution-cards .card-body {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ← 上に揃える */
    justify-content: flex-start;
    height:  300px;
    text-align: start;
}

.solution-cards h3 {
    writing-mode: vertical-rl;
    font-size: clamp(24px, 4vw, 40px);
    font-family: "Zen Antique", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    color: #444;
    padding: 10px;
    height: 100%;
}
.solution-cards p {
    font-size: clamp(16px, 3vw, 24px);
    font-family: "Kaisei Decol", serif;
    font-weight: 400;
    font-style: normal;
    padding: 20px 0 10px;
    margin: 0;
}

/* server-support */
.solution-cards .card.card--server-support .card-body {
    text-align: start;
    height:  300px;
    width: 100%;
}
.solution-cards .card.card--server-support{
    background-image:
            linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
            url('../images/3.png');

    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: top left;
}
.solution-cards .card.card--server-support img{
    position: absolute;
    bottom:0;
    left: 0;
    width: auto;
    max-height: 280px;
    height: 100%;
    object-fit: cover;
}

/* security */
.solution-cards .card.card--security .card-body {
    display: flex;
    justify-content: space-between; /* 両端に配置 */
    align-items: center;           /* 縦位置を揃える */
    gap: 10px;
    width: 100%;
}
.solution-cards .card.card--security h3{
    padding: 20px 60px 10px 0;
    font-size: clamp(26px, 4vw, 40px);
}
.solution-cards .card.card--security p{
    margin-left: 50px;
}
.solution-cards .card.card--security{
    background-color: #fff;
    background-image:
            linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
            url('../images/bg-security.png');
    background-size: 100% 100%;
}
.solution-cards .card.card--security img{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 280px;
    object-fit: cover;
}
/* team */
.solution-cards .card.card--team .card-body {
    text-align: start;
    padding-left: 50px;
}
.solution-cards .card.card--team h3{
    font-size: clamp(26px, 4vw, 40px);
}
.solution-cards .card.card--team {
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url('../images/bg-team.jpg');
    background-size: 100% 100%;
}

.solution-cards .card.card--team img{
    position: absolute;
    top:10px;
    right: 0;
    width: auto;
    height: 300px;
    object-fit: cover;
}


@media(max-width: 880px) {
    .solution-cards .card.card--team img {
        height: 350px;
        right: -20px;
    }
}
@media (max-width: 480px) {
    .solution-cards .card.card--server-support img {
        height: 150px;
    }
    .solution-cards .card.card--security h3{
        padding: 20px 20px 10px 0;
    }
    .solution-cards .card.card--security p{
        margin-left: 20px;
    }
    .solution-cards .card.card--team img {
        height: 150px;
        right: -20px;
    }
}
