/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

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

/* ヘッダー */
header {
    background-color: #fff;
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: #32327c;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: bold;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #fff;
    color: #d41473;
}

/* メインコンテンツ */
main {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

.page-title {
    background-color: #fff;
    color: #333;
    padding: 40px 0;
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 32px;
    text-align: center;
}

/* 会社情報テーブル */
.company-info {
    margin-bottom: 60px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.info-table th, .info-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.info-table th {
    width: 25%;
    text-align: left;
    font-weight: bold;
    background-color: #f2f2f2;
}

.info-table td ul {
    padding-left: 20px;
}

.info-table td ul li {
    list-style-type: disc;
    margin-bottom: 5px;
}

/* 地図セクション */
.company-map {
    margin-bottom: 60px;
}

.company-map h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #32327c;
    color: #32327c;
}

.map-container {
    width: 100%;
    height: 450px;
    border: 1px solid #ddd;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 18px;
    font-weight: bold;
}

.footer-info p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-container {
        margin: 0;
        position: relative;
        display: flex;
        justify-content: flex-start; /* ここでロゴを左寄せ */
        align-items: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px;
    }
    
    .page-title {
        padding: 30px 0;
    }
    
    .page-title h2 {
        font-size: 28px;
    }
    
    .info-table th, .info-table td {
        display: block;
        width: 100%;
    }
    
    .info-table th {
        border-bottom: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .page-title h2 {
        font-size: 24px;
    }
    
    .company-map h3 {
        font-size: 20px;
    }
}

/* 会社イメージ画像 */
.company-image {
    width: 100%;
    height: 300px;
    background-color: #e9f0f7;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.company-image img {
    max-width: 100%;
    height: auto;
}

/* ロゴスタイル */
.logo img, .logo svg {
    height: 40px;
    width: auto;
}

/* 会社理念セクション */
.company-philosophy {
    margin-bottom: 60px;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
}

.company-philosophy h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #32327c;
    text-align: center;
}

.company-philosophy p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 沿革セクション */
.company-history {
    margin-bottom: 60px;
}

.company-history h3 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #32327c;
    color: #32327c;
}

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

.history-table th, .history-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.history-table th {
    width: 30%;
    text-align: left;
}

@media (max-width: 768px) {
    .company-image {
        height: 200px;
    }
    
    .company-philosophy {
        padding: 20px;
    }
    
    .history-table th, .history-table td {
        display: block;
        width: 100%;
    }
    
    .history-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .history-table td {
        padding-top: 5px;
    }
}

/* モバイルメニュー用の追加スタイル */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #32327c;
    transition: all 0.3s ease;
}

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

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

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

/* ヘッダー固定用スタイル */
header.fixed {
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    animation: slideDown 0.3s ease;
}

/* モバイル時のロゴとメニューボタンの位置調整 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }


}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}



/* フェードイン効果 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応の追加 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #fff;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
    }
}

/* オフィス画像の代替用 */
.office-placeholder {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #0066cc, #66aaff);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* ヒーローセクション */
.hero {
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), #0066cc; */
    background:  #fff;
    color: #333;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-icon {
    width: 13px; /* アイコンのサイズを調整 */
    height: auto;
    margin-right: 0px; /* 文字との間隔を調整 */
}

.btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* サービスページのアプリ紹介2カラム中央寄せ（新バージョン） */
.company-philosophy .app-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.company-philosophy .app-image {
  flex: 1 1 240px;
  text-align: center;
  display: flex;
  justify-content: center;
}
.company-philosophy .app-image img {
  max-width: 180px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(50,50,124,0.08);
}
.company-philosophy .app-desc {
  flex: 2 1 320px;
  min-width: 260px;
}
@media (max-width: 800px) {
  .company-philosophy .app-flex {
    flex-direction: column;
    gap: 24px;
  }
  .company-philosophy .app-image,
  .company-philosophy .app-desc {
    width: 100%;
  }
}

/* フェードイン系エフェクト（バリエーション） */
.slide-up-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1s cubic-bezier(.4,0,.2,1);
}
.slide-up-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

.slide-left-in {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1s cubic-bezier(.4,0,.2,1);
}
.slide-left-in.visible {
  opacity: 1;
  transform: translateX(0);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-10deg) scale(0.98);
  transition: opacity 1s, transform 1s;
}
.rotate-in.visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* 右からスライドイン＋フェードイン */
.slide-right-in {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s cubic-bezier(.4,0,.2,1), transform 1s cubic-bezier(.4,0,.2,1);
}
.slide-right-in.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-07s.visible {
  transition-delay: 0.7s !important;
}

.delay-12s.visible {
  transition-delay: 1.2s !important;
}

a.btn.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
a.btn.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
