body {
    font-family: 'Noto Sans JP';
    line-height: 1.6; /* 行間を適宜調整 */
    color: #333333; /* 文字色を適宜調整 */
    margin: 0;
    padding: 0;
    background-color: #000; /* 背景色を適宜調整 */
}

.header {
    width: 1200px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 40px;
}

.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 p{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 10px 20px;
    background-color: #f3f3f3;
    border-bottom: 1px solid #ddd;
}

.breadcrumb-text{
    display: flex;
    align-items: center;
    padding: 10px 20px;
    width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #1e61a4;
    text-decoration: none;
}

.breadcrumb-margin{
    margin:5px;
    user-select: none;
}

.content {
    padding-top: 20px;
    padding-left: 20px;
    padding-bottom: 20px;
    width: 1200px;
    height: auto;
    margin: 20px auto;
    background-color: #fff;
}

h1 {
    margin-bottom: 20px;
}

h1.heading-with-line {
    position: relative;
    padding-left: 20px;
}

h1.heading-with-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background-color: #800080; /* Purple color */
    border-radius: 2px;
}

h2 {
    position: relative;
    display: inline;
    margin-bottom: -20px;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* 下線を文字の下に表示 */
    height: 2px; /* 下線の太さを調整 */
    background-color: #800080; /* 下線の色を調整 */
    transform: scaleX(0); /* 下線を文字幅分のみに調整 */
    transform-origin: left;
    transition: 1s;
}

h2.show-underline::after {
    width: var(--headline-width, 50px); 
    transform: scaleX(1); /* 下線を表示する */
}

h3{
    margin-top: 10px;
    margin-bottom: -10px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.service {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    align-items: flex-start;
}

.service-description iframe {
    margin-top: 20px;
    width :400px;
    height: 240px;
    margin: auto;
    padding: 0px;
}

.service img {
    width: auto;
    height: auto;
    max-width: 400px;
    margin-top: 20px;
    padding: 0px;
}

.service-description {
    margin-left: 40px;
    margin-right: 60px;
    vertical-align: top;
}


.service-img {
    margin-left:auto;
    margin-right:60px;
    margin-bottom: 20px; /* 画像の間にスペースを追加 */
    justify-content: space-between;
}

.supplement {
    font-size :18px;
    margin-top: 15px;
    margin-left: 20px;
    padding-top: 0px;
    font-weight: bold;
    position: relative;
    display: inline-block;
 }

.supplement::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px; /* 下線を1px離す */
    height: 1px; /* 下線の太さ */
    background-color:  #800080; /* 下線の色 */
}

.menu {
    display: grid;
    grid-template-rows: repeat(8, 1fr);
    grid-auto-flow: column;
    margin-right: 60px;
    margin-top: 20px;
    vertical-align: top;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
    padding-left: 95px;
    padding-right: 95px;
}

/*一覧以外の社史用*/
.menu-item {
    width: 180px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: left,space-between;
    border-radius: 2px;
    text-decoration: none;
    font-size: 16px;
    color: #7b107b;
    border: 1px solid #ddd; /* 上下左右すべてに境界線を追加 */
    padding: 5px;
    margin: 5px;
}

.menu-item:hover {
    background-color:#fff;
    color: #a82ca8;
    border: 1px solid #eee;
}

/*一覧用*/
.menu-ichiran {
    display: grid;
    grid-template-rows: repeat(8, fr);
    grid-auto-flow: column;
    margin-right: 60px;
    margin-top: 20px;
    vertical-align: top;
    border: 2px solid #ddd;
    padding-left: 0px;
    padding-right: 0px;
}

.menu-item-ichiran {
    width: 400px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: left,space-between;
    text-decoration: none;
    font-size: 16px;
    color: #7b107b;
}

.menu-item-ichiran:hover {
    background-color:#fff;
    color: #a82ca8;
}

/* 一覧に利用する表 */
table {
    width: 400px;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
    text-align: left;
}

th, td {
    padding: 8px;
    border: 1px solid #ccc;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.ichiran-kakusya-table{
    width: 50%;
}
.references{
    font-size: 10px;
    margin-left: 40px;
}

.hidden {
    visibility: hidden;
}
