@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
    --primary: #0d3c97;
    --text: #404040;
    --header-height: 80px;
}

/* ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 2.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.en {
    font-family: 'Lato', sans-serif;
}

/* ヘッダースタイル */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    width: 312px;
    object-fit: contain;
}

.pc-nav {
    margin-left: auto;
    margin-right: 40px;
}

.pc-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.pc-nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.3s;
}

.pc-nav ul li a:hover {
    color: var(--primary);
}

.header-contact {
    text-align: center;
    padding-left: 20px;
    border-left: 2px solid #ddd;
    height: calc(100% - 20px);
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-label {
    font-size: 12px;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    gap: 8px;
    line-height: 1;
}

.phone-number {
    font-size: 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: var(--text);
}

.business-hours {
    font-size: 12px;
    color: var(--text);
    margin-top: 4px;
    line-height: 1;
}

/* ハンバーガーメニューのスタイル */
.menu-toggle {
    display: none;
    background: #0d3c97;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #fff; /* 白い線 */
    position: absolute;
    left: 8px;
    transition: all 0.3s;
}

.menu-toggle span:nth-child(1) {
    top: 12px;
}

.menu-toggle span:nth-child(2) {
    top: 19px;
}

.menu-toggle span:nth-child(3) {
    top: 26px;
}

/* メニューが開いているときのスタイル */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}



/* オーバーレイの追加 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
    
}

.menu-overlay.active {
    display: block !important; /* 強制的に適用 */;
}

/* スマートフォンナビゲーションのスタイル */
.sp-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}



.sp-nav.active {
    display: block;
}

.sp-nav ul {
    list-style: none;
    padding: 80px 20px 20px;
    text-align: center;
}

.sp-nav ul li {
    margin-bottom: 20px;
}

.sp-nav ul li a {
    display: block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
}

.sp-nav .contact-phone {
    display: flex;
    align-items: center;
}

.sp-nav .contact-phone img {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

/* 閉じるボタンのスタイル */
.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #0d3c97;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* メニューより上に表示 */
}

.close-menu::before,
.close-menu::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transition: transform 0.3s;
}

.close-menu::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-menu::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* メインコンテンツスタイル */
main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main > section {
    padding: 60px 8%;
}

.sections-wrapper {
    width: 100%;
    max-width: 1200px; /* コンテンツの最大幅を制限 */
    margin: 0 auto;
    padding: 50px 5%;
    padding-top:0;
}

.sections-wrapper > section {
    padding-left: 0;
    padding-right: 0;
}

/* ヒーローセクションスタイル */
.hero {
    padding-top: var(--header-height);
    padding-bottom: 60px;
    background-color: #fff;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

.hero .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

.hero-content {
    text-align: left;
    margin-bottom: 30px;
    padding: 80px 8%;
    max-width: 1000px;
    padding-left: calc(8% + 30px);
}

.hero h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-title, .hero-subtitle {
    display: block;
}

.subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0px;
}

.hero-image-wrapper {
    width: calc(100% - 8%);
    border-radius: 0 100px 100px 0;
    overflow: hidden;
    margin-left: 0;
    margin-right: auto;
    margin-top: -60px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* 共通セクションスタイル */
section {
    padding: 60px 0;
}

.container h2 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    line-height: normal;
}

.container h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 30px;
    display: inline-block;
    padding-bottom: 5px;
    position: relative;
}

.container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

/* メッセージセクションスタイル */
.message .content {
    margin-bottom: 30px;
}

.signature {
    text-align: right;
    font-weight: bold;
}

/* 会社案内セクションスタイル */
.company {
    padding: 80px 0;
    background-color: #fff;
}

.company-overview {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    align-items: center;
}

.company-info {
    flex: 1;
    margin-bottom: 30px;
}

.company-info h4 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--text);
}

.company-info p {
    font-size: 16px;
    line-height: 2;
    color: var(--text);
}

.company-image-wrapper {
    flex: 1;
}

.company-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

/* 経営方針、会社概要、アクセスセクションスタイル */
.corporate-philosophy,
.company-profile,
.access {
    position: relative;
    margin-bottom: 40px;
}

.corporate-philosophy h2,
.company-profile h2,
.access h2 {
    color: #404040;
    font-size: 28px;
    margin: 3px 0 20px;
}

.corporate-philosophy .en,
.company-profile .en,
.access .en {
    font-size: 14px;
    color: #0d3c97;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    line-height: normal;
}

.corporate-philosophy .en::after,
.company-profile .en::after,
.access .en::after {
    content: none;
}

.corporate-philosophy {
    margin-bottom: 80px;
}

.philosophy-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 40px;
}

.vision-image {
    max-width: 800px;
    margin: 0 auto;
}

.vision-diagram {
    width: 100%;
    height: auto;
}

.company-profile {
    margin-bottom: 80px;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 20px;
    border: 1px solid #ddd;
}

.profile-table th {
    width: 200px;
    font-weight: 700;
    text-align: left;
    vertical-align: top;
}

.access-text {
    margin-bottom: 40px;
    line-height: 2;
}

.office-info {
    margin-bottom: 30px;
}

.office-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.map-wrapper {
    margin-bottom: 60px;
}

/* サービスセクションスタイル */
#service.service {
    margin-top:0;
}

.service-grid {
    display: grid;
    gap: 80px;
    margin-top: 60px;
}

.service-item {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background: none;
    padding: 0;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 50%;
}

.service-item h4 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 30px;
    line-height: normal;
}

.service-item .en {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    margin-bottom: 0;
    order: -1;
    line-height: normal;
}

.service-item p {
    font-size: 16px;
    line-height: 2;
    margin: 0;
}

.service-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
}

/* 開発実績セクションスタイル */
.development {
    margin-bottom: 50px;
}

.development-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background-color: #f6f6f6;
    border-radius: 10px;
    padding: 30px;
}

.development-grid h3 {
    font-size: 28px;
    text-align: left;
    margin-bottom: 15px;
    grid-column: 1 / -1;
}

.development-grid h3::after {
    content: none;
}

.development-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.development-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.development-text {
    flex-grow: 1;
}

.development-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary);
}

.development-text p {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* コンタクトフッタースタイル */
.contact-footer-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #0D3C97;
    padding: 30px 0 40px;
    box-sizing: border-box;
}

.contact-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    color: #fff;
    text-align: center;
}


.contact-title {
    font-size: 26px;
    margin-bottom: 0;
    font-weight: bold;
}

.contact-footer .contact-phone {
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.contact-footer .contact-phone img {
    width: 48px;
    height: 48px;
}

.contact-footer .phone-number {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    font-family: 'Lato', sans-serif;
}

.contact-footer .business-hours {
    font-size: 22px;
    color: #fff;
    font-weight: bold;
}

/* フッタースタイル */
footer {
    background-color: #202020;
    color: #fff;
    padding: 60px 0 30px;
    width: 100%;
    overflow: hidden;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-left {
    flex-shrink: 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    width: 230px;
    height: auto;
}

.footer-info {
    font-size: 14px;
    line-height: 1.8;
}

.footer-right {
    flex-shrink: 0;
}

.footer-nav {
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-iso {
    text-align: right;
}

.footer-iso img {
    width: 180px;
    height: auto;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5% 0;
    border-top: 1px solid #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom,
.footer-bottom a {
    color: #888c97;
    font-size: 12px;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

.footer-policy {
    display: flex;
    gap: 20px;
}

/* フッターのロゴテキストスタイル */
.footer-logo-text {
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
    margin-bottom: 15px;
}

.logo-text {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #fff; /* ロゴの青色、必要に応じて調整 */
}

.logo-subtext {
    display: block;
    font-size: 12px;
    color: #fff;
}


/* セキュリティポリシー、プライバシーポリシー */
.privacy-policy,
.security-policy {
    margin-top: 40px; /* この値は必要に応じて調整してください */
}

.privacy-policy .container,
.security-policy .container {
    padding-top: 40px; /* この値は必要に応じて調整してください */
}

.privacy-policy h2,
.security-policy h2 {
    margin-bottom: 10px;
}

.privacy-policy h3,
.security-policy h3 {
    margin-bottom: 30px;
}

.privacy-policy .content,
.security-policy .content {
    margin-top: 30px; /* この値は必要に応じて調整してください */
}

.privacy-policy .content h4:first-of-type,
.security-policy .content h4:first-of-type {
    margin-top: 40px; /* この値は必要に応じて調整してください */
}

.privacy-policy .content h4,
.security-policy .content h4 {
    font-size: 1.1rem; /* この値は必要に応じて調整してください */
    margin-top: 20px;
    margin-bottom: 5px;
    line-height: normal;
}

.text-right {
    text-align: right;
}


/* トップに戻るボタンスタイル */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    z-index: 1000;
    font-size: 24px;
}

.back-to-top:hover {
    background-color: #0a2d70;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top .fa-arrow-circle-up {
    color: #fff;
}




/* レスポンシブスタイル */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 20px;
    }

    .service-item {
        gap: 40px;
    }

    .service-image {
        height: 320px;
    }

    .development-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-nav {
        gap: 30px;
    }

    .pc-nav {
        display: none;
    }

    .header-contact {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff; /* 完全な白背景に変更 */
        z-index: 1000;
        height: 80px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* ヘッダーに影を追加 */
    }
    
    .hero {
        position: relative;
        height: calc(100vh - 60px); /* ビューポートの高さからヘッダーの高さを引く */
        margin-top: 0px; /* ヘッダーの高さ分だけ下げる */
        overflow: hidden;
        margin-bottom: 30px; /* MESSAGEセクションとの間隔を調整 */
    }

    .hero .container {
        height: 100%;
        padding: 0;
        position: relative;
        margin: 0;
        max-width: none;
    }

    .hero-image-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0 !important;
        margin: 0;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 !important;
        display: block;
    }


    .hero-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 20px;
        background: rgba(0, 0, 0, 0.2); /* テキストの背景に半透明のオーバーレイを追加 */
        z-index: 2;
        margin: 0;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.4;
        margin-bottom: 10px;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .subtitle {
        font-size: 16px;
        color: #5576b6;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
    }
    
    /* MESSAGEセクションのスタイル調整 */
    .message {
        padding-top: 0px; /* 上部の余白を調整 */
    }

    /* セクション間の余白を調整 */
    .sections-wrapper {
        padding-top: 0; /* 上部の余白を削除 */
    }

    .company-overview {
        flex-direction: column;
        gap: 30px;
    }

    .company-info h4 {
        font-size: 24px;
    }

    .profile-table,
    .profile-table tbody,
    .profile-table tr,
    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
    }

    .profile-table tr {
        border-bottom: 1px solid #ddd;
    }

    .profile-table th,
    .profile-table td {
        border-bottom: none;
    }

    .profile-table th {
        background-color: #f8f8f8;
        font-weight: bold;
        padding: 10px 15px;
    }

    .profile-table td {
        padding: 10px 15px;
    }

    

    .service-grid {
        gap: 60px;
    }

    .service-item {
        flex-direction: column;
    }

    .service-content,
    .service-image {
        width: 100%;
    }

    .service-image {
        order: -1;
    }

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

    .development-grid h3 {
        margin-bottom: 15px;
        font-size: 20px;
    }

    .development-item {
        gap: 12px;
    }

    .development-item:not(:last-child) {
        margin-bottom: 15px;
    }

    .contact-footer-wrapper {
        padding: 60px 0;
    }

    .contact-title {
        font-size: 20px;
    }

    .contact-footer .phone-number {
        font-size: 36px;
    }

    .contact-footer .business-hours {
        font-size: 18px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-info {
        margin-bottom: 20px;
    }

    .footer-logo {
        margin-bottom: 15px;
    }

    .footer-contact {
        text-align: center;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-nav a {
        padding: 0px 0; /* 上下のパディングを縮小 */
        margin: 0px 0; /* 上下のマージンを縮小 */
    }

    .footer-iso {
        margin-bottom: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
    }

    .footer-policy {
        margin-top: 10px;
    }
    .footer-logo-text {
        text-align: center;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-subtext {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 16px;
    }

    .hero-image-wrapper {
        border-radius: 12px;
    }

    .company-info h4 {
        font-size: 20px;
    }

    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
    }

    .service-item h4 {
        font-size: 24px;
    }

    .service-image {
        height: 200px;
    }

    .contact-footer .phone-number {
        font-size: 28px;
    }

    .contact-footer .business-hours {
        font-size: 16px;
    }
}