/* デスクトップ版トップページ専用スタイル */

/* 全体のセクション共通設定 */
section, article {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* メインコンテナ */
.section-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* content要素の共通設定 */
section content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* block要素の共通設定 */
section content block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    margin: 60px auto 40px;
    padding: 0;
    color: rgb(164, 11, 94);
    font-size: 24pt;
    font-family: YuMincho, "游明朝体", "YuMincho", "游明朝", "Yu Mincho", "Hiragino Mincho ProN", "ヒラギノ明朝 Pro W3";
}

/* 背景動画コンテナ - トップページ専用 */
.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: -9999;
    overflow: hidden;
    pointer-events: none;
    box-sizing: border-box;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%; 
    width: auto; 
    height: auto;
    object-fit: cover;
}

/* タイトルセクション - 100vh高さ設定 */
.page-title {
    text-align: center;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh; /* 画面の高さいっぱいに設定 */
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上揃えに変更 */
}

.page-title-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin-top: 20vh; /* 画面高さの1/5の位置に配置 */
}

.page-title svg {
    width: calc(85% * 2/3); /* 元の幅の2/3 */
    max-width: calc(350px * 2/3); /* 元の最大幅の2/3 */
    height: auto;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px white) drop-shadow(0 0 30px white); /* 採光効果を追加 */
}

.page-title-text {
    margin: calc(3vh + 10px) auto !important; /* 画面高さに応じたマージン + 固定値 */
    font-size: 22px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    color: black !important;
    text-shadow: 0 0 10px white, 0 0 15px white; /* 採光効果を追加 */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 5px 10px;
    display: block;
}

.scroll-indicator {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto 0;
    cursor: pointer;
}

/* スクロールインジケーター内のaタグはホバー効果をキャンセル */
a .scroll-indicator:hover {
    /* ホバー効果を削除 */
}

/* スクロールインジケーターのリンクは特別扱い */
.page-title a:hover {
    transform: none !important; /* 全てのtransform効果を無効化 */
    color: inherit !important; /* 色変更も無効化 */
}

.scroll-arrow {
    width: 40px !important;
    height: 40px !important;
}

.scroll-text {
    font-size: 12px;
    margin-top: 5px;
}

/* ナレッジセクション */
#lnk-knowledge content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    padding-top: 0;
    padding-bottom: 60px;
}

#lnk-knowledge content block:first-child,
.knowledge-text-block {
    flex: 1 1 600px;
    max-width: 700px;
    padding: 0 30px;
    margin: 10px 8px;
}

#lnk-knowledge content block:last-child,
.knowledge-image-block-desktop {
    flex: 1 1 400px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 10px 0;
    position: relative;
    box-sizing: border-box;
    overflow: visible;
}

.knowledge-circle-container {
    position: relative;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.knowledge-circle {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    display: block;
}

.knowledge-circle-typo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    margin: 0;
    padding: 0;
}

.td-data-wrap {
    padding: 15px;
    margin: 10px 0;
    border-bottom: 1px solid #eee;
}

/* サービスセクション */
#lnk-business p {
    display: block;
    margin: 0 auto 20px;
    text-align: center;
    max-width: 90%;
    white-space: nowrap;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    gap: 5px;
}

.card {
    width: 260px;
    max-width: 310px;
    margin: 5px;
    box-sizing: border-box;
    background-color: rgba(164, 11, 94, 1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: auto;
}

.card-content {
    padding: 0;
}

.card img {
    width: 100%;
    border-radius: 6px 6px 0 0;
    display: block;
    margin: 0;
    padding: 0;
}

.card img:hover {
    opacity: 0.6;
}

.card h2 {
    color: white;
    font-size: 20px;
    margin: 5px 0;
    text-align: center;
}

.card h2:hover {
    color: #f00;
}

.card p {
    color: white;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    text-align: left;
    padding-left: 10px;
    padding-right: 10px;
}

/* 特別なオーバーライドスタイルは削除 - モバイル版と同じスタイルを継承 */

/* ニュースセクション */
#lnk-news {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lnk-news .section-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lnk-news content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    padding-top: 0;
    padding-bottom: 60px;
}

#lnk-news content block {
    width: 100%;
    max-width: 1200px;
}

.news-scroll-container {
    width: 100%;
    max-width: 1100px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(164, 11, 94, 0.5) transparent;
    position: relative;
    cursor: grab;
    text-align: center;
    margin: 0 auto;
}

.news-scroll-container > div,
.news-cards-wrapper {
    width: max-content !important;
    margin: 0 auto;
    display: inline-flex !important;
    gap: 30px;
    padding: 0 5px;
    scroll-snap-type: x mandatory;
}

.news-card {
    width: 330px !important; /* 固定幅 - 画面サイズに関わらず変化しない */
    min-width: 330px !important;
    max-width: 330px !important;
    flex: 0 0 330px !important;
    display: inline-block;
    white-space: normal;
    vertical-align: top;
    transition: transform 0.2s ease;
    scroll-snap-align: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-card-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    background-color: rgb(164, 11, 94);
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 10px;
}

.news-date {
    display: inline-block;
    color: #777;
    font-size: 14px;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.4;
    color: #333;
    text-align: center;
}

.news-summary {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.scroll-indicator-dots {
    width: 100%;
    text-align: center;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.scroll-dot.active {
    background-color: rgb(164, 11, 94);
}

.news-view-all {
    text-align: center;
    margin: 20px 0 0;
    width: 100%;
}

.news-view-all-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgb(164, 11, 94);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 0 auto;
    text-align: center;
}

/* style.cssから移行したデスクトップ用スタイル */
/* セクションブロックのテキスト配置 */
section content block h2, section content block h3 {
    text-align: center; 
    line-height: 1.8em;
    font-weight: bold;
    color: rgb(164, 11, 94);
}

section content block p {
    text-align: justify; 
    line-height: 1.8em;
    font-weight: normal;
    padding: 10px;
    color: black;
}

section content single-block {
    text-align: center;
}

section content single-block p {
    text-align: justify;
}

/* カード要素のスタイリング */
.card h2 {
    color: white;
    font-size: 20px;
    margin: 10px 0;
    text-align: center;
}

.card p {
    color: white;
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.5;
    text-align: justify;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
}

/* 静的ページのコンテンツ設定 */
.content-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    text-align: left;
}

/* コンテンツページの見出し */
.content-title {
    color: rgb(164, 11, 94);
    text-align: center;
    margin-bottom: 30px;
}

/* 静的ページの段落 */
.content-paragraph {
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
}

/* 個人情報保護方針ページ用スタイル */
.content-page-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    text-align: left !important;
}

.desktop-device .content-page-container {
    text-align: left !important;
}

.content-page-inner {
    margin: 0;
    text-align: left !important;
}

.desktop-device .content-page-inner {
    text-align: left !important;
}

.content-page-inner h1 {
    color: rgb(164, 11, 94);
    margin-bottom: 30px;
    text-align: center;
    /* モバイル版からの追加 */
    font-size: 20px;
}

.content-page-inner section,
.content-page-inner section * {
    margin-bottom: 30px;
    text-align: left !important;
    /* モバイル版からの追加 */
    width: 100%;
}

.content-page-inner h2 {
    margin: 25px 0 15px;
    color: #333;
    text-align: left;
    /* モバイル版からの追加 */
    font-size: 18px;
}

.content-page-inner p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: left;
    /* モバイル版からの追加 */
    font-size: 14px;
}

.content-page-inner ul {
    margin-left: 20px;
    text-align: left;
}

.content-page-inner li {
    margin-bottom: 5px;
    text-align: left;
    /* モバイル版からの追加 */
    font-size: 14px;
}

.content-page-inner ul {
    margin-left: 20px;
}

.company-address {
    margin: 20px 0;
    text-align: left;
}

.policy-footer {
    margin-top: 40px;
    margin-bottom: 100px;
    text-align: center;
}

/* モバイル版からの追加 - テーブル調整 */
table {
    width: 100% !important;
}

/* 全体的なテキスト配置 - モバイル版からの追加 */
.desktop-device p:not(.footer-copyright), 
.desktop-device div:not(.centered):not(.page-footer div) {
    text-align: left;
}

/* 見出しだけは中央揃えにする - モバイル版からの追加 */
.desktop-device h1, 
.desktop-device h2, 
.desktop-device h3, 
.desktop-device .centered,
.desktop-device .page-footer div,
.desktop-device .page-footer p {
    text-align: center !important;
}
}

/* セクション要素へのパディング追加 - モバイル版からの追加 */
.desktop-device section > div {
    padding-left: 10px !important;
    padding-right: 10px !important;
}