body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
}

.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

/* ロゴとログインボタンのコンテナをフレックスボックスで配置 */
.header-top {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

/* ログインボタンのスタイル */
.button-login {
    background-color: #800080; /* ボタンの背景色 */
    color: #fff; /* テキストの色 */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.button-login:hover {
    background-color: #a388bc; /* ホバー時の色 */
}

.button-login:focus, .button-login:active {
    outline: none;
}

/* コンテンツのぼかし効果 */
.blurred {
    filter: blur(8px);
    pointer-events: none; /* ぼかしエリアのクリックを無効化 */
    position: relative;
    opacity: 0.7; /* ぼかし部分に少し透明度を加える */
}

/* オーバーレイのスタイル */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8); /* 背景の半透明な白 */
    z-index: 1;
    text-align: center;
}

.overlay p {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

/* ログイン・新規登録ボタンのスタイル */
.button-login, .button-register {
    background-color: #800080; /* ボタンの背景色 */
    color: #fff; /* テキストの色 */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin: 0 10px;
    display: inline-block;
}

.button-login:hover, .button-register:hover {
    background-color: #a388bc; /* ホバー時の色 */
}


.header-nav {
    display: flex;
    justify-content: center;
    padding: 0 0;
    background-color: #fff;
    width: 1200px;
    margin: 0 auto;
}

.header-nav a {
    flex: 1; /* 各リンクを均等に広げる */
    text-align: center; /* テキストを中央に配置 */
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 15px 0;
    margin: 0 10px; /* リンク間のスペース */
    border-bottom: 2px solid transparent; /* デフォルトで透明なボーダーを追加 */
}

.header-nav a:hover {
    color: #800080;
    border-bottom-color: #800080;
}

.header-nav a.active, .header-nav a.active:hover {
    color: #800080; /* Purple in hexadecimal */
    border-bottom-color: #800080; /* Purple in hexadecimal */
}

.catch-copy{
    background-color: #fff;
    margin: 0 auto;
}

.catch-copy img{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 1200px;
    margin: 0 auto;
}

.content {
    position: relative;
    padding: 20px;
    width: 1200px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 -4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 0;
}


.container {
    position: relative;
    padding-top: 20px;
    width: 1250px;
    max-width: 1240px;
    margin: auto;
}

.background-image {
    display: block;
    width: 100%;
    height: auto;
}


.right iframe{
    display: flex;
    position: absolute;
    top: 22%;
    left: 50%;
    width: 500px;
    height: 285px;
    pointer-events: auto; /* 背景のインタラクションを無効にする場合 */
    
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: normal; /* Remove bold styling */
}

h1.heading-with-line {
    position: relative;
    padding-left: 30px;
}

h1.heading-with-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background-color: #800080; /* Purple color */
    border-radius: 2px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-grid-textbook {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.service {
    position: relative;
    display: flex;
    padding: 10px;
}

.service img {
    width: 225px;
    height: 127px;
}

.service-text {
    width: 200px;
    display: block;
    margin-left: 20px;
    align-items: flex-start;
}

.service-title {
    font-size: 16px;
    background-color: #800080; /* Purple background color */
    color: #fff; /* White text color for better contrast */
    margin-bottom: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 8px; /* Rounded corners */
    display: inline-block;
}

.service-link {
    font-size: 16px;
    padding-right: 10px;
    margin-bottom: 8px;
    color: #1e61a4;
}

.service-link:hover {
    color: #30aceb;
}

.service-description {
    font-size: 14px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 4px;
    padding-right: 4px;
    margin-top: 8px;
    color: #000;
    display: inline-block;
    background-color: #e9e9e9;
    align-items: center;
    justify-items: center;
}

.button {
    width: 75px;
    height: auto;
    justify-items: center;
    vertical-align: middle;
    max-width: 100px;
    border: none;
    margin-top: 40px;
    margin-left: 15px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center; /* Align icon and text */
    background-color: #a388bc;
    color: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: right;    
}

a, a:visited, a:focus, a:active {
    text-decoration: none;
}

a.button, a.button:visited, a.button:focus, a.button:active {
    text-decoration: none;
}

/* Adjust button content spacing */
.button-content {
    font-size: 14px;
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    padding-right: 5px;
    padding-left: 10px;
}

.button-content img {
    width: 24px; /* Set the width of the icon */
    height: 24px; /* Set the height of the icon */
    margin-bottom: 1px;
    padding-left: 5px;
}

.service-textbook {
    position: relative;
    display: flex;
    padding: 10px;
}

.service-textbook img {
    width: 225px;
    height: 127px;
}

.service-textbook-description{
    margin-left: 20px;
    display: block;
}

.button-textbook{
    display: flex;
    justify-content: left;
    padding: 0 0;
    margin: -10px;
}

.button-textbook a {
    width: 450px;
    text-align: center; /* テキストを中央に配置 */
    text-decoration: none;
    color: #fff;
    background-color: #800080;
    font-size: 14px;
    padding: 15px 0;
    margin: 20px 10px;
}