/* ======================================
   基本設定
   ====================================== */
body {
    font-family: 'Zen Kurenaido', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kaisei Decol', serif;
}

a {
    color: #333232;
}

header {
    background: white;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
    height: auto; /* コンテンツに応じた高さ */
}

.header-content {
    display: flex;
    flex-direction: column; /* 縦方向に並べる */
    align-items: center;   /* 中央寄せ */
    justify-content: center;
    width: 100%;
    padding: 0;  /* 不要なパディング削除 */
}

h1 {
    margin: 0;
    padding: 10px 0;
}

.header-content img {
    max-width: 100%;
    height: auto;
    width: 600px;
}


/* ======================================
   ナビゲーション
   ====================================== */
.nav-container {
    background-color: #FF5474;
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    transition: all 0.3s ease-in-out;
}

.nav-links a {
    color: #0096c7;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-links a.active {
    background: white;
    color: #FF5474;
}

/* ハンバーガーメニュー（スマホ用） */
.menu-toggle {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    color: #0096c7;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle:hover {
    opacity: 0.8;
}

/* モバイル用ナビゲーション（ハンバーガー展開時） */
.nav-links.mobile {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
    background: #FF5474;
}


/* ======================================
   メインコンテンツ & フッター
   ====================================== */
main {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    background: white;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

footer {
    background-color: #FF5474;
    color: #0096c7;
    padding: 10px;
    font-size: 0.9em;
    margin-top: 20px;
}


/* ======================================
   動画・コンテンツカード
   ====================================== */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;  /* 最大幅を設定 */
    aspect-ratio: 16 / 9;  /* アスペクト比を固定 */
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
}

/* コンテンツカードのグリッドレイアウト */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    justify-content: center;
}

/* カードデザイン */
.content-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: white;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
    width: 100%;
    max-width: 250px;  /* 各カードの最大幅 */
}

.content-card:hover {
    transform: translateY(-5px);
}

/* 画像を正方形に */
.content-card img {
    width: 100%;
    aspect-ratio: 1 / 1;  /* 正方形を維持 */
    object-fit: cover;    /* 画像の歪み防止 */
    border-radius: 8px;
}

/* テキスト設定 */
.card-text {
    text-align: center;
    color: #333;
}

.card-text h4 {
    margin: 5px 0;
    font-size: 1.2em;
}

.card-text p {
    font-size: 0.9em;
}

@media screen and (max-width: 1000px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.5em;
        padding: 5px;
    }
    .nav-links {
        display: none;
    }
    .nav-links.mobile {
        display: flex;
        flex-direction: row; /* 横並びに変更 */
        flex-wrap: wrap;     /* 幅が足りない場合は改行 */
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.9em;
        padding: 6px 8px;
    }
}

/* サービスセクションのスタイル */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.service-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #0096c7;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #0096c7;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        min-height: 240px;
    }
}

/* イントロセクションのスタイル */
.catch-copy {
    text-align: center;
    margin: 60px 0 40px;
}

.main-catch {
    font-size: 36px;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-family: 'Zen Kurenaido', sans-serif;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-content p {
    line-height: 2;
    margin-bottom: 25px;
    color: #333;
}

.lead {
    font-size: 18px;
    font-weight: 500;
}

.highlight {
    background: linear-gradient(transparent 60%, #ffeb3b 60%);
    padding: 0 5px;
    font-weight: bold;
}

.point {
    font-size: 20px;
    text-align: center;
    margin: 30px 0;
}

.emphasis {
    font-size: 28px;
    font-weight: bold;
    color: #ff4757;
    padding: 0 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.team-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    border-left: 5px solid #667eea;
}

.credentials {
    font-size: 16px;
    line-height: 2.2;
    text-align: center;
}

.service-name {
    font-size: 22px;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .main-catch {
        font-size: 28px;
    }
    
    .emphasis {
        font-size: 24px;
    }
    
    .intro-content {
        padding: 30px 15px;
    }
    
    .credentials br {
        display: none;
    }
}

/* ナビゲーションメニューのスタイル */
.nav-menu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 30px;
    flex-wrap: wrap;
}
.nav-menu a {
    color: #0096c7;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
    background: rgba(255,255,255,0.2);
}
@media (max-width: 768px) {
    .nav-menu ul { gap: 10px; }
    .nav-menu a { font-size: 14px; padding: 8px 15px; }
}
