html {
    font-size: 100%;
}

body {
    color: #000;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 2.0;
    letter-spacing: 0.1em;
    font-size: 1rem;
}

a {
    color: #000;
    text-decoration: none;
    display: inline-block;
}

img {
    max-width: 100%;
    vertical-align: bottom;
    object-fit: cover;
}

li {
    list-style: none;
}

/* セール中 */

.pricing .sale-point {
    font-size: 1.125rem;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 700;
    display: block;
    background: linear-gradient(
        135deg, 
        #bf953f 0%, 
        #fcf6ba 25%, 
        #b38728 50%, 
        #fbf5b7 75%, 
        #aa771c 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ここまで */

.text-bold {
    font-weight: 700 !important; 
    color: #E60012;              
    display: inline;             
        
}

.inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.wrapper {
    max-width: 1024px;
    margin: 0 auto;
    padding-inline: 16px;
    margin-bottom: 180px;
}

.pricing .wrapper {
    background-color: #0d1b2a;
    padding-block: 80px;
    box-shadow: 0 0 0 100vmax #0d1b2a;
    clip-path: inset(0 -100vmax);
    z-index: -10;
}

.about .wrapper {
    background-color: #FAF9F6; /* ここにお好みのコードを */
    padding-block: 80px;
    box-shadow: 0 0 0 100vmax #FAF9F6;
    clip-path: inset(0 -100vmax);
    z-index: -10;
}

.about .wrapper {
    margin-top: 120px;
}

.challenges .wrapper {
    margin-bottom: 0;
}

/* セクション共通 */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    font-weight: 700;
}

.pricing .section-title,
.pricing th,
.pricing td {
    color: #e0e6ed;
}

.mission .section-title,
.about .section-title,
.sales .section-title {
    text-align: left;
    padding-left: 24px;
    position: relative;
    line-height: 1;
    font-weight: 700;
}

.mission .section-title::before,
.about .section-title::before,
.sales .section-title::before {
    content: ''; /* 空の要素を作る */
    position: absolute;
    left: 0; /* 左端に配置 */
    top: 50%; /* ★縦方向の中央に配置 */
    transform: translateY(-50%); /* ★縦方向のズレを完全に補正 */
    width: 8px; /* ★線の太さ（画像に合わせて少し太めに） */
    height: 1.2em; /* ★線の高さ（文字より少し高くすると画像に近づくわ） */
    background-color: #E60012; /* ★赤い色（パキッとした赤） */
}

.header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    background-image: url('../img/mainvisual.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 180px;
}

.header .container {
    position: absolute;
    top: 30%;
    left: 0;
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
    max-width: 100%;
}

.header-content {
    display: inline-block;
    text-align: left;
}

.catchphrase {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: left;
}

.catchphrase-subtitle {
    font-size: 1.4rem;
    margin-bottom: 48px;
    font-weight: bold;
    text-align: left;
}

.contact-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.micro-copy {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.mission,
.about,
.sales {
    width: 100%;
}

.mission-grid,
.about-grid,
.sales-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
}

.mission-text,
.about-text,
.sales-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-text h3,
.about-text h3,
.sales-text h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 799;
}

.mission-text p,
.about-text p,
.sales-text p {
    text-align: justify;
}

.mission-image,
.about-image,
.sales-image {
    flex: 1;
    max-width: 450px;
    display: flex;
    align-items: center;
    padding-top: 16px;
}

.mission-image img,
.about-image img,
.sales-image img {
    /* ここを書き換え */
    width: 90%;              /* 70%〜80%くらいがお上品よ */
    margin: 0 auto;         /* これ重要！狭くした分、中央に寄せる */
    display: block;         /* margin: 0 autoを効かせるために必要 */

    /* 前回の高さを合わせるCSS（そのまま維持） */
    aspect-ratio: 16 / 9;    /* 比率を固定して高さを合わせる */
    object-fit: cover;
    object-position: center;
    
    /* 装飾（そのまま維持） */
    border-radius: 5px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.about-image {
    display: inline-block; /* 親要素の幅を画像サイズまで縮める */
}

.about-image img {
    display: block;        /* 画像下の不要な隙間を排除 */
    width: 100%;           /* 親要素の幅に追従 */
    height: auto;
}

.about-image p {
    margin-top: 8px;       /* 画像との間隔 */
    font-size: 0.875rem;
    line-height: 1.4;
    text-align: center;    /* テキストを中央揃え */
}

/* カードレイアウト */

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.challenges-card {
    background-color: #ffffff; /* 混じりけのない純白 */
    padding: 40px 32px;        /* 上下の余白を広げ、情報の呼吸を確保 */
    border-radius: 12px;       /* 8pxより少しだけモダンで柔らかなR */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease; /* 触れた時の反応。静止画で終わらせない */
}

.challenges-card:hover {
    transform: translateY(-5px); /* ユーザーの意思に呼応する */
}

.challenges-card p {
    text-align: left;         /* 規律あるテキスト配置 */
    color: #444;              /* 真っ黒ではない、深いグレーで高級感を */
    font-size: 0.9rem;        /* 情報を凝縮し、知的な印象を */
    line-height: 1.8;         /* 行間は、読み手の心の余裕よ */
}

.challenges-card-icon img {
    display: block;
    margin-inline: auto;
    width: 30%;
    margin-bottom: 16px;
}

.challenges-card h4 {
    text-align: center;
    font-weight: 700;
}


/* 料金表 */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    
    /* 2pxの太さの枠線を確保 */
    border: 2px solid transparent; 
    
    /* ★ここが魔術：4色の金をブレンドして、光の反射（金属光沢）を作る */
    border-image: linear-gradient(
        135deg, 
        #bf953f 0%, 
        #fcf6ba 25%, 
        #b38728 50%, 
        #fbf5b7 75%, 
        #aa771c 100%
    ) 1;
    
    /* 角丸を強制的に効かせるための記述 */
    border-radius: 8px;
    background-clip: padding-box;
    overflow: hidden; 
    
    margin-bottom: 20px;
}

th, td {
    /* 内側の線も、外枠に合わせて上品なグラデーションにする */
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px;
    text-align: left;
}

th:last-child, td:last-child { border-right: none; }
tr:last-child th, tr:last-child td { border-bottom: none; }
.pricing .note {
    /* 注意書き：金色の世界観に合わせて、ギラギラした赤ではなく少し落ち着いた上品な赤に変更 */
    color: #cbd5e1; 
    font-weight: normal;
}

/* 💡 ポイント：footer と .contact の間の「半角スペース」を完全に消し去るわ！ */
footer.contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/footer-img.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: #ffffff;
}

.contact .wrapper {
    padding-top: 64px; /* 背景画像が入るから、上の余白を少し広げて引き締めると超絶カッコいいわよ！ */
    padding-bottom: 32px; /* フッターとしての落ち着きを出すために、下に少しクッション（余白）をプラス！ */
    margin-bottom: 0px;
}

.contact .section-title {
    text-align: center; /* タイトルも中央にバチッと揃えて大将軍の構えに！ */
    margin-bottom: 24px;
}

.contact p {
    text-align: center;
    margin-bottom: 48px;
}

.contact .contact-btn-wrap {
    text-align: center; /* ボタンの親要素を中央揃えにして、ボタンが真ん中にドカンと配置されるようにハック！ */
    margin-bottom: 120px; /* スマホでの見やすさを考えて、下の余白を160pxから120pxに少し引き算（最適化）よ！ */
}

.contact .copyright {
    font-size: 12px; /* コピーライトはsmallタグのニュアンスに合わせて少し控えめなサイズにデバッグ！ */
    margin-bottom: 16px;
    opacity: 0.7; /* 著作権表示は少しだけ薄くして、メインの文字を引き立てるのがプロの職人技よ！ */
}

.sidebar {
    width: 300px;
    padding: 16px;
}

.news-image img {
    width: 100%;          /* 横幅は親要素（枠）にいっぱい広げる */
    height: 180px;        /* 💡高さを好みの数値（例: 180px）でカチッと固定！ */
    object-fit: cover;    /* 💡超重要！画像の比率を保ったまま、枠内に綺麗にトリミングする */
}

.author,
.ranking,
.archive {
    text-align: center;
    margin-bottom: 64px;
}

.author img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 32px;
}

.sidebar .sidebar-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 32px;
}

.author .profile {
    font-size: 0.875rem;
    text-align: justify;

}

.news article {
    margin-bottom: 30px;
}

.news .sidebar-news-title {
    font-size: 0.875rem;
    font-weight: normal;
    text-align: left;
}


@media screen and (max-width: 767px) {
    body {
        font-size: 0.9rem;
        line-height: 1.8;
        letter-spacing: 0.05em;
    }

    .wrapper {
        margin-bottom: 90px;
        padding-inline: 16px;
    }

    .challenges .wrapper,
    .sales .wrapper {
        padding-block: 50px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .mission .section-title,
    .about .section-title,
    .sales .section-title {
        padding-left: 16px;
    }

    .mission .section-title::before,
    .about .section-title::before,
    .sales .section-title::before {
        width: 5px;
    }

    .header {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 80px;
        margin-bottom: 90px;
    }

    .header .container {
        position: static;
        top: auto;
        left: auto;
        padding-inline: 20px;
    }

    .catchphrase {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .catchphrase-subtitle {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }

    .micro-copy {
        font-size: 0.85rem;
    }

    .contact-btn {
        width: 100%;
        max-width: 320px;
        padding: 16px 24px;
        font-size: 1rem;
        text-align: center;
        box-sizing: border-box;
    }

    .mission-grid,
    .about-grid,
    .sales-grid {
        flex-direction: column;
        gap: 24px;
    }

    .mission-text,
    .about-text,
    .sales-text {
        order: 1;
    }

    .mission-image,
    .about-image,
    .sales-image {
        order: 2;
        max-width: 100%;
    }

    .mission-text h3,
    .about-text h3,
    .sales-text h3 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .mission-image img,
    .about-image img,
    .sales-image img {
        width: 100%;
    }

    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .challenges-card {
        padding: 30px 24px;
    }

    .challenges-card p {
        text-align: center;
    }

    .challenges-card-icon img {
        width: 24%;
    }


    th, td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .contact .wrapper {
        padding-top: 50px;
        padding-bottom: 20px;
    }

    .contact .section-title {
        margin-bottom: 20px;
    }

    .contact p {
        margin-bottom: 32px;
    }

    .contact .contact-btn-wrap {
        margin-bottom: 60px;
    }
}

@media screen and (max-width: 430px) {
    .mission .section-title,
    .about .section-title,
    .sales .section-title {
        line-height: 1.4;
        padding-left: 16px;
    }

    .mission .section-title::before,
    .about .section-title::before,
    .sales .section-title::before {
        top: 0;
        transform: none;
        width: 5px;
        height: 100%;
    }

    .about .wrapper,
    .sales .wrapper {
        padding-block: 16px;
    }

    .challenges .wrapper {
        padding-block: 90px;
    }

    .about .wrapper {
        margin-block: 90px;
    }

    .inner {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        padding-block: 16px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    table {
        border: none;
        border-image: none;
        border-radius: 0;
        overflow: visible;
    }

    tr {
        margin-bottom: 24px;
        border: 2px solid transparent;
        border-image: linear-gradient(
            135deg, 
            #bf953f 0%, 
            #fcf6ba 25%, 
            #b38728 50%, 
            #fbf5b7 75%, 
            #aa771c 100%
        ) 1;
        border-radius: 8px;
        background-clip: padding-box;
        overflow: hidden;
    }

    tr:last-child {
        margin-bottom: 0;
    }

    td {
        box-sizing: border-box;
        padding: 12px 16px;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    }

    td:last-child {
        border-bottom: none !important;
    }

    td:nth-child(1) {
        font-weight: bold;
        font-size: 1.1rem;
        padding-top: 16px;
        color: #fcf6ba;
    }

    td:nth-child(2) {
        font-size: 1rem;
        color: #e0e6ed;
    }

    td:nth-child(3) {
        font-size: 0.9rem;
        padding-bottom: 16px;
    }
}