/*================================================
 * common
 ================================================*/

/* Google FontsはHTML側で読み込みます */

/* 基本のフォントサイズを設定 */
html {
    /* htmlのフォントサイズ指定を削除 */
}

body {
    font-size: 15px; /* bodyに基準となるフォントサイズを指定 */
    line-height: 1.7;
    font-family: 'Noto Sans JP', 'Noto Sans Japanese', sans-serif;
    color: #343a40;
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

a {
   color: #014099;
   text-decoration: none;
}
a:hover {
   text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

*,
*:before,
*:after {
   box-sizing: border-box;
}

/* ヒーローエリア */
.hero {
    display: flex;
    width: 100%;
    min-height: 35vh;
}
.hero-text-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #002347;
    background-image: linear-gradient(to right, #002347, #013a6b);
}
.hero-text-content {
    max-width: 500px;
}
.hero-text-content h1 {
    font-size: 3.2em;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #ffffff;
}
.hero-text-content p {
    font-size: 1.1em;
    color: #cdd6e0;
}
.hero-image-container {
    width: 50%;
    background-image: url('/company/CM/images/hero_image.png');
    background-size: cover;
    background-position: top;
}

/* パンくずリスト */
.breadcrumb {
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 0 10px;
    width: 100%;
    height: 0px!important;
    margin: 0 auto 5rem !important;
}


.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb li {
    font-size: 0.9em;
}
.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 0.5em;
    color: #6c757d;
}
.breadcrumb a {
    color: #014099;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

/* メインコンテンツ */
.main-contents-area {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 50px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 1000px;
}
/* 個別マージン設定 */
#cm-main {
    margin-top: 20px;
    margin-bottom: 50px;
}
#cm-past {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* 紹介セクション */
.intro-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}
.intro-section-image {
    flex: 0 0 40%;
    max-width: 40%;
}
.intro-section-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.intro-section-text {
    flex: 1;
    line-height: 2;
}
.intro-section-text p {
    margin-bottom: 1em;
    font-size: 1em;
    font-weight: 600;
}
.intro-section-text .tagline {
    font-weight: 700;
    font-size: 1.7em;
    margin: 1.5em 0;
    display: block;
    color: #013a6b;
}
/* 明朝体指定 */
.intro-section-text p,
.intro-section-text .tagline {
    font-family: 'YakuHanMP', 'Noto Serif JP', serif !important;
}

/* CMタイトル関連 */
.release-date {
    text-align: center;
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 10px;
}
.cm-title-wrapper {
    text-align: center;
}
.cm-title {
    font-size: 2.0em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #014099;
    display: inline-block;
}
.cm-subtitle { /* 過去CM用 */
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}
.cm-version-title {
    margin-bottom: 20px;
    text-align: center;
}
.cm-version-title .version {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: #013a6b;
    margin-bottom: 5px;
}
.cm-version-title .title {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0;
}

/* YouTubeコンテナ */
.youtube-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 40px; /* スペーサーの代替 */
}
/* 最後の動画コンテナは余白不要 */
.main-contents-area .youtube-container:last-of-type {
    margin-bottom: 0;
}
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 採用セクション */
.recruit-section {
    background-image: linear-gradient(135deg, #013a6b 0%, #005c97 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.recruit-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 900;
}
.recruit-section p {
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.8;
}
.recruit-btn {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #013a6b;
    padding: 18px 56px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    text-shadow: none;
}
.recruit-btn:hover {
    background-color: #e8f4ff;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.recruit-btn .arrow-icon {
    width: 1em;
    height: 1em;
    margin-left: 12px;
    transition: transform 0.2s ease;
}
.recruit-btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* レスポンシブ設定 */
@media screen and (max-width: 900px) {
    .hero {
        flex-direction: column;
    }
    .hero-text-container, .hero-image-container {
        width: 100%;
    }
    .hero-image-container {
        min-height: 300px;
    }
    .hero-text-container {
        text-align: center;
        padding: 40px 20px;
    }
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .hero-text-content h1 {
        font-size: 2.8em;
    }
    .main-contents-area {
        padding: 30px 20px;
    }
    .breadcrumb {
        padding: 0 20px;
    }
    .intro-section {
        flex-direction: column;
        gap: 25px;
    }
    .intro-section-image {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }
    .cm-title {
        font-size: 1.8em;
    }
    .cm-subtitle {
        font-size: 1.5em;
    }
    .cm-version-title .title {
        font-size: 1.5em;
    }
    .recruit-section h2 {
        font-size: 2.2em;
    }
    .recruit-section p {
        font-size: 1em;
    }
    .recruit-btn {
        padding: 16px 40px;
        font-size: 1em;
    }
}
