/* Reset and Base Styles */
body,
h1,
h2,
h3,
p,
ul,
li,
a,
div {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

.navbar {
    margin-bottom: 0;
}

/* flash-migration-service ページ特有のヒーロー文字スタイル調整 */
/* (セレクタを business/index.php の構造に合わせて調整) */
#pageheader .business-title {
    font-family: 'futura-pt', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    margin-bottom: 25px;
}

#pageheader .subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    line-height: 1.7;
    color: #d9534f; /* 赤み */
    margin-top: -15px;
    margin-bottom: 25px;
}

.about-images {
    margin: 15px 0; /* 上下のマージンは維持 */
}

.about-images img {
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
}

/* Specific button style adjustments for visibility and hover effect */
#about a.btn-primary {
    color: #fff !important;
}

#about a.btn-primary:hover {
    color: #fff !important;
    text-decoration: none;
}

/* Styles migrated from business.css */
.wrap.contentclass {
    margin-top: 50px; /* For non-mobile */
    margin-bottom: 0;
}
@media (min-width: 576px) {
    .wrap.contentclass {
        margin-top: 0;
    }
}

.page-header {
    padding: calc(30px + 30 * (100vw - 320px) / 920);
    text-align: center;
    margin-bottom: 0;
}

.business-wp {
    background: var(--bs-medium-gray, #f7f7f7); /* Fallback color if var is not defined */
    padding-top: 1.5em;
    padding-bottom: 3em;
}

section.contents-block {
    margin-top: 6em;
    margin-bottom: 2em; /* Adjusted */
}

article.contents-box {
    margin-bottom: 1em;
    padding: 3em calc(1rem + 10px);
    background: #ffffff;
    border-radius: 3em;
}

/* 共通のカスタムタイトルスタイル */
.custom-title {
    font-family: var(--font-body, 'Noto Sans JP', sans-serif);
    font-weight: 700;
    font-style: normal;
    color: #333;
}

/* h2.custom-title - メインタイトル */
h2.custom-title {
    line-height: 1.5;
    font-size: 3rem;
    position: relative;
    padding: 0.8rem 1.5rem calc(0.8rem + 5px);
    border: none;
    margin-bottom: 2%;
}

h2.custom-title::before {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 100%;
    height: 100%;
    content: '';
    border: 4px solid #000;
}

/* h3.custom-title */
h3.custom-title {
    line-height: 40px;
    font-size: 28px;
    margin-top: 10%;
    margin-bottom: 2%;
    position: relative;
    padding: 1rem 2rem calc(1rem + 10px);
}

h3.custom-title::before {
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    border: 4px solid #000;
}

/* h4.custom-title - セクションタイトル */
h4.custom-title {
    line-height: 40px;
    font-size: 24px;
    border: none;
    margin-bottom: 3%;
}

/* h5.custom-title - コンテンツボックス内タイトル */
h5.custom-title {
    line-height: 20px;
    font-size: calc(16px + 5 * (100vw - 320px) / 1580);
    padding-bottom: 1em;
    border-bottom: 2px solid #333;
    margin-bottom: 1em;
}
/* End of styles migrated from business.css */

/* flash-migration-service page specific styles */

/* Hero section text styles */
/* .business-title への独自スタイルは削除 */
/* #pageheader .subtitle の独自スタイルブロックを削除 */
/* （必要であれば、base.css の p スタイルが適用される） */

.about-images {
    margin: 25px 0; /* Adjusted margin for consistency */
}

.about-images img {
    border: 1px solid #ddd;
    padding: 5px;
    background-color: #fff;
}

#about a.btn-primary {
    color: #fff !important;
}

#about a.btn-primary:hover {
    color: #fff !important;
    text-decoration: none;
}

/* QRコードセクションのスタイル */
.qr-code-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.qr-code-section img {
    filter: none;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.qr-code-section p {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    color: #6c757d;
}

/* レスポンシブ調整 */
@media (max-width: 767.98px) {
    .qr-code-section {
        display: none !important; /* モバイルでは完全に非表示 */
    }
}

/* Responsive adjustments for button text wrapping */
@media (max-width: 767.98px) {
    .contents-box .btn.w-100 {
        white-space: normal !important; /* Allow text to wrap */
        word-break: break-word; /* Break words if necessary */
    }
}

/* PC display: button width 60% and centered */
@media (min-width: 768px) {
    #about .contents-box a.btn.w-100,
    #features .contents-box a.btn {
        /* Apply to both buttons */
        width: 50% !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ボタンの共通スタイル */
.read-btn {
    display: inline-block;
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 80px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px; /* 丸みを帯びたデザイン */
    border: none;
    text-align: center;
    transition: background-color 0.3s;
    margin-top: 2%;
}

.read-btn:hover {
    background-color: #444444;
    color: #ffffff;
    text-decoration: none;
}

.read-btn:visited {
    color: #ffffff;
    text-decoration: none;
}

/* FAQテキストのスタイル */
.faq-text {
    font-size: 1.6em;
    font-weight: 700;
}

.btn-c {
    padding: 1em;
}

/* リストスタイル - business.cssから引用 */
ol.list-nam {
    list-style: decimal;
    list-style-position: outside;
    font-size: 15px;
    line-height: 1.5em;
    padding-left: 1.7em;
}