/* --- 全体設定 --- */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
}

.inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 改行の調整：スマホでは強制改行を無効化する --- */
@media (max-width: 600px) {
    br { display: none; } /* スマホの時はHTMLの<br>を無視して自然に流す */
    p { margin-bottom: 1.5em; } /* その分、段落の隙間をしっかり空ける */
}

/* --- ヘッダー・ナビ --- */
header { padding: 20px 0; background: #fff; border-bottom: 1px solid #eee; }
nav ul {
    list-style: none; padding: 0; margin: 20px 0 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
}
nav a { text-decoration: none; color: #d32f2f; font-weight: bold; font-size: 14px; }

/* --- 見出し装飾 --- */
h2 {
    font-size: 24px; text-align: center; margin: 60px 0 30px;
    position: relative; padding-bottom: 15px;
}
h2::after {
    content: ""; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 40px; height: 3px; background: #d32f2f;
}

/* --- フッター（ここを強化しました） --- */
footer {
    background: #222; /* より深い黒で重厚感を */
    color: #eee;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid #444;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

footer h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    border-left: 3px solid #d32f2f;
    padding-left: 15px;
}

footer p { font-size: 14px; line-height: 1.6; margin: 5px 0; }

.copyright {
    text-align: center;
    font-size: 12px;
    color: #888;
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}
/* 実績表の保険：はみ出しても画面を壊さず、指で横にスライドできるようにする */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* iPhoneで滑らかに動くように */
}

table {
    width: 100%;
    min-width: 450px; /* ある程度の幅を確保して、文字が重なりすぎるのを防ぐ */
    border-collapse: collapse;
}

/* コンセプトエリアのレイアウト安定化 */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右50%ずつ */
    gap: 40px;
    align-items: center;
}

@media (max-width: 800px) {
    .concept-grid {
        grid-template-columns: 1fr; /* スマホでは縦並びにしてデッサンを大きく見せる */
        text-align: left;
    }
}

/* メインビジュアルの文字をくっきりさせる */
.hero-text h2 {
    text-shadow: 0 0 15px rgba(0,0,0,0.6); /* ぼんやりと影を入れて白文字を浮かび上がらせる */
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* --- 高床式ページ・技術解説用 --- */
.tech-header {
    background: #f9f9f9;
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.benefit-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* ほんの少し浮かせると高級感が出ます */
}

.benefit-box h3 {
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
    padding-left: 15px;
    margin-bottom: 20px;
}

.point-list {
    padding-left: 20px;
}

.point-list li {
    margin-bottom: 10px;
}

.tech-img {
    margin: 20px auto 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-back {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 40px;
    transition: 0.3s;
}
.btn-back:hover {
    background: #d32f2f;
    color: #fff;
}

/* 高床式ページ専用：図解カードのデザイン */
.benefit-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 柔らかい影 */
}

/* メリットの箇条書き（point-list）の装飾 */
.point-list {
    list-style: none;
    padding: 0;
}

.point-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 12px;
}

.point-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #d32f2f; /* 赤いアクセント */
}

/* 画像の微調整 */
.tech-img {
    margin-top: 30px;
    border: 5px solid #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1.service-title {
    text-align: center;
    /* 画面幅に合わせてサイズを変える(vw)設定。最小サイズ(1.2rem)も指定して読みやすさを確保 */
    font-size: clamp(1.2rem, 4.5vw, 26px); 
    margin-bottom: 40px;
    white-space: nowrap; /* これが「絶対に改行させない」という命令です */
    letter-spacing: -0.05em; /* ほんの少しだけ字間を詰めると、収まりが良くなります */
}

/* リンクがあるステップだけに適用するスタイル */
a.flow-step {
    position: relative;
    padding-right: 45px; /* 矢印が入るスペースを確保 */
}

/* 矢印（>）の作成 */
a.flow-step::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-top: 2px solid #d32f2f; /* アトリエカラーの赤 */
    border-right: 2px solid #d32f2f;
    transform: translateY(-50%) rotate(45deg); /* 45度回転させて矢印に */
    opacity: 0.6;
}

/* ホバー（タップ）した時に矢印を少し動かす演出 */
a.flow-step:active::after,
a.flow-step:hover::after {
    right: 15px;
    opacity: 1;
}

a.flow-step {
    background-color: #fff9f9 !important; /* ごくごく薄い赤 */
    border-color: #fbeaea !important;
}