/* style.css */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #333;
}

.header-bg {
    background-image: url('image/DSC_0030.JPG'); /* ヘッダー画像のプレースホルダー */
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* 回転テキストコンテナのスタイル */
.rotating-text-container {
    position: absolute;
    bottom: 40px; /* 下からの距離 */
    left: 0px; /* 左からの距離 */
    background-color: rgba(243, 8, 8, 0.738); /* 半透明の黒背景 */
    padding: 1.5rem 1.5rem; /* パディング */
    border-radius: 0 1.5rem 1.5rem 0; /* 角を丸くする */
    max-width: 90%; /* コンテナの最大幅 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.section-padding {
    padding: 80px 0;
}

.campbutton{
    position: absolute;
    top:0;
    right: 4px;
    margin-top: -10px;
    color: white;
    padding: 10px 12px 10px 12px;
    font-weight: bold;
    border-radius: calc(infinity * 1px);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease-in-out;
}

.campbutton:hover{
    color: #3b82f6;
    transform: translateY(-5px);
}

.card {
    background-color: white;
    border-radius: 1.5rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
}



.staff-card {
    background-color: #e0f2f7; /* 明るい青の背景 */
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}


.staff-card::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, rgba(126,204,242,0.1), rgba(126,204,242,0.3));
    z-index: 0;
    border-radius: 1.5rem;
}
.staff-card > * {
    position: relative;
    z-index: 1;
}


.staff-avatar {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    margin-bottom: 1.5rem;
}


.gradient-text {
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px; /* 全体が丸く */
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.footer-bg {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0;
}


/* 高校留学プラン詳細のための特定のスタイル */
.school-district-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.school-district-tab {
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 9999px;
    background-color: #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.school-district-tab.active,
.school-district-tab:hover {
    background-color: #667eea;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.school-district-content {
    display: none;
}
.school-district-content.active {
    display: block;
}
.school-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.school-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.university-image{
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.table-container {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.price-table {
    width: 100%;
    border-collapse: collapse;
}
.price-table th, .price-table td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.price-table th {
    background-color: #edf2f7;
    font-weight: 600;
}
.price-table tr:nth-child(even) {
    background-color: #f7fafc;
}


/* ナビゲーションバーのスタイル */
.navbar {
    background-color: rgba(253, 37, 37, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-link {
    color: #d0d5dd;
    font-weight: 600;
    padding: 1.75rem 1rem;
    transition: all 0.2s ease-in-out;
}
.nav-link:hover {
    color: #667eea;
}
.logo-container {
    display: flex;
    align-items: center;
}
.logo {
    height: 50px; /* ロゴのサイズを調整 */
    width: auto;
}

/* お知らせボックスのスタイル */
.notice-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 500px; /* ここでお知らせボックスの幅を調整 */
    height: 400px; /* ここでお知らせボックスの高さを調整  */
    background-color: #f8f8f8; /* 明るい背景色 */
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    z-index: 90; /* 回転テキストより下に配置 */
    /* 折りたたみ/展開アニメーションのため */
    max-height: 200px; /* ここで展開時の最大高さを調整できます (例: 250px, 180px) */
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 1; /* デフォルトで表示 */
}

.notice-box.collapsed {
    max-height: 60px; /* 折りたたみ時の高さ (タイトルとボタンが見える程度に) */
    padding-bottom: 2.0rem; /* 折りたたみ時のパディング調整 */
    width: 200px; /* 折りたたみ時の幅 (タイトルとボタンが見える程度に) */
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.notice-box.collapsed .notice-header {
    margin-bottom: 0; /* 折りたたみ時は下のマージンをなくす */
    border-bottom: none; /* 折りたたみ時は罫線をなくす */
}


.notice-title {
    font-weight: 700;
    color: #333;
    font-size: 1.125rem; /* text-lg */
}

.close-button {
    background: none;
    border: none;
    font-size: 1.25rem; /* text-xl */
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.3s ease-out;
}

.close-button:hover {
    background-color: #e2e8f0;
    color: #333;
}

.notice-box.collapsed .close-button {
    transform: rotate(45deg); /* 折りたたみ時にバツ印をプラスに回転 */
}

.notice-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    /* 折りたたみ時にコンテンツを非表示にする */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.notice-box.collapsed .notice-content {
    opacity: 0;
    visibility: hidden;
    height: 0; /* 折りたたみ時にコンテンツの高さを0にする */
    margin-top: -0.5rem; /* 上のコンテンツとの間のスペースを詰める */
}


.notice-content p:last-child {
    margin-bottom: 0;
}


.cta-button {
            display: inline-block;
            background-color: #3b82f6; /* Tailwind blue-500 */
            color: white;
            padding: 1rem 2.5rem;
            border-radius: 9999px; /* Tailwind rounded-full */
            font-weight: 700; /* font-bold */
            text-decoration: none;
            transition: background-color 0.3s, transform 0.3s;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
          background-color: #2563eb; /* Tailwind blue-600 */
          transform: translateY(-2px);
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .header-bg {
        height: 400px;
    }
    .rotating-text-container {
        bottom: 20px;
        left: 0px;
        padding: 0.75rem 1rem;
        font-size: 1.125rem; /* md:text-xlに合わせる */
    }
    .notice-box {
        width: 90%; /* モバイルでは幅を広げる */
        left: 5%; /* 中央寄せ */
        right: 5%;
        bottom: 15px; /* 下からの距離を調整 */
    }
}

@media (max-width: 480px) {
    .header-bg {
        height: 400px;
    }
    .rotating-text-container {
        bottom: 15px;
        left: 15px;
        padding: 0.5rem 0.75rem;
        font-size: 1rem; /* md:text-lgに合わせる */
    }
    .notice-box {
        bottom: 10px;
        padding: 0.75rem;
    }
    .notice-title {
        font-size: 1rem;
    }
    .close-button {
        font-size: 1rem;
    }
    .notice-content {
        font-size: 0.85rem;
    }
}