@import url('https://fonts.googleapis.com/css2?family=Sen&display=swap');
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Sen';
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    height: 64px;
    background-color: black;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 34px;
}

.logo-image {
    height: 34px;
    width: auto;
    margin-right: 15px;
}

.logo-text {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
}

nav#nav-menu {
    display: flex;
    align-items: center;
    border-right: 0.5px solid #fff;
    height: 34px;
}

nav#nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0 12px;
    border-left: 0.5px solid #fff;
    height: 34px; /* Set the height of nav links */
    line-height: 34px; /* Center text vertically */
    display: inline-block; /* Ensure padding works correctly */
    text-align: center;
    position: relative;
    padding-left: 34px; /* Adjust padding to accommodate background image */
    font-size: 14px;
    font-weight: normal;
}

nav#nav-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px; /* Adjust position based on padding */
    width: 17px;
    height: 22px;
    background-image: url('../images/nav-bg.svg'); /* Replace with your actual image URL */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle img {
    height: 34px;
    width: auto;
}

main {
    flex: 1;
    overflow-y: auto; /* Ensure scrolling if content overflows */
    box-sizing: border-box;
}

.top-visual {
    position: relative;
    width: 100%;
    height: 1376px;
    overflow: hidden;
}

.top-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.top-text {
    position: absolute;
    top: 30%;
    left: 170px;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.top-text img {
    width: 140px;
    height: 170px;
    position: relative;
}

.top-text h1 {
    margin: 20px 0;
    font-size: 60px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.top-text p {
    margin: 0;
    font-size: 19px;
    letter-spacing: 0.26em;
    line-height: 40px;
}


/* 調整しやすい変数群 */
:root{
  /* 背景グラデ色（必要なら調整） */
  --bg-start: #CFE1EF;
  --bg-end:   #BBCBE4;

  /* 三角（上）の最大高さ（px指定） */
  --top-tri-max: 500px;

  /* 三角（下）の最大高さ（px指定） -- 下部が不要なら 0 に */
  --bottom-tri-max: 350px;

  /* 三角の実際の高さ（レスポンシブ）:
     clamp(最小, 推奨(ここでは幅に依存する値), 最大) で安全に制御 */
  --top-tri-h: clamp(40px, 30vw, var(--top-tri-max));
  --bottom-tri-h: clamp(40px, 20vw, var(--bottom-tri-max));
}

.two-container {
  position: relative;
  width: 100%;
  min-height: 70vh;
  background: linear-gradient(135deg, var(--bg-start) 8%, var(--bg-end) 100%);
  overflow: hidden;
  z-index: 0;
}

/* 上の斜め三角（右上に斜めライン） */
.two-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  /* 幅はコンテナ幅よりやや広めに取り、skew/clipしたときの隙間を防ぐ */
  width: 120%;
  height: var(--top-tri-h);

  /* 色味は背景に馴染む薄いレイヤー（必要に応じて調整） */
  background: linear-gradient(120deg, #C6D5E8, #ACBADF);

  /* 右上→左下へ斜めの三角にする（右上が直角） */
  clip-path: polygon(100% 0, -6% 0, 100% 75%);

  /* 斜め角の角度微調整は clip-path のポイントや transform を変える */
  transform-origin: top right;
  transform: translateX(6%);
  pointer-events: none;
  z-index: -1;
}

.two-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120%;
  height: var(--bottom-tri-h);
  background: linear-gradient(220deg, #C6D5E8, #ACBADF);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  transform-origin: bottom left;
  transform: translateX(-6%);
  pointer-events: none;
  z-index: -1;
}

main section {
    max-width: 1920px;
    margin: 0 auto;
}

main section h2 {
    font-size: 90px;
    color: #123A56;
    font-weight: bold;
    margin: 0 0 40px 0;
}

main section.page-container h2 {
    font-size: 38px;
    border-top: 3px solid #123A56;
    border-bottom: 3px solid #123A56;
    padding: 20px 0;
}

main section.page-container h3 {
    margin: 40px 0 0 0;
    color: #123A56;
}

main section.page-container h4, main section.page-container h5 {
    color: #123A56;
    margin-bottom: 0;
}

main section.page-container p {
    margin: 15px 0 0 0;
    color: #123A56;
}

main section.page-container p a {
    text-decoration: underline;
    color: #123A56;
    font-weight: bold;
}

main section.page-container p a:hover {
    text-decoration: none;
}

main section.page-container ul {
    margin: 15px 0 0 0;
    color: #123A56;
    padding-inline-start: 1em;
}

main section.page-container ul li {
    margin: 0 0 5px 0;
    color: #123A56;
}

main section.page-container ul li:last-child {
    margin: 0;
}


main section.page-container p.mt-5, main section.page-container ul.mt-5 {
    margin: 5px 0 0 0;
}

main section.page-container table {
    margin: 15px 0 0 0;
    color: #123A56;
    border-collapse: collapse;
    width: 100%;
}

main section.page-container table th, main section.page-container table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

main section.page-container table th {
    background-color: #123A56;
    color: #fff;
}

main section h2 span {
    font-size: 30px;
    margin-left: 50px;
}

.container-bg-light-gray {
  background-color: #EBEBEC;
}

.content-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.content-container.reverse {
    flex-direction: row-reverse;
    margin-top: 100px;
}

.left-content {
    flex: 1;
    max-width: 60%;
    font-size: 28px;
    color: #123A56;
    font-weight: bold;
}

.left-content p {
    font-size: 16px;
    font-weight: normal;
    line-height: 3;
}

.right-image {
    flex: 1;
    max-width: 40%;
}

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

.title {
    flex: 1;
    margin-left: 10px;
    font-size: 16px;
}

#service .left-content {
  max-width: 60%;
}

#service .right-image {
  max-width: 40%;
}

#service .left-content .left-content-title {
  border-left: 5px solid #123A56;
  padding-left: 20px;
}

#service .left-content .left-content-title h3 {
    font-size: 32px;
    font-weight: bold;
    color: #123A56;
    margin: 0 0 10px 0;
    background: linear-gradient(transparent 64%, #ffffff 0%);
    display: inline;
}

#service .left-content .left-content-title span {
  font-size: 15px;
  font-weight: bold;
  color: #123A56;
}

#service .left-content .left-content-title p {
    font-size: 15px;
    font-weight: bold;
    color: #123A56;
    margin: 0;
}

#service .left-content ul {
    list-style-type: none;
    border-left: 1px solid #123A56;
    padding: 20px 0 10px 12px;
    margin: 0 0 0 2px;
}

#service .left-content ul li {
    padding-left: 37px;
    margin-bottom: 20px;
    font-size: 22px;
    color: #123A56;
    position: relative;
    font-weight: normal;
}

#service .left-content ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 40px;
    background-image: url('../images/list-icon.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#service .left-content ul li span {
    font-size: 14px;
    color: #123A56;
    padding-left: 10px;
}

#service .left-content ul li p {
    line-height: 1;
    margin: 0;
    font-size: 14px;
}

main #price {
    background-image: url("../images/price-bg.svg");
    background-size: cover;
    background-position: center;
    color: #fff;
}

main #price h2 {
    color: #fff;
}

main #price .left-content {
    color: #fff;
    font-size: 50px;
    font-weight: normal;
}

main #price .left-content span {
    color: #fff;
    font-size: 24px;
    margin-right: 4vh;
}

main #price .right-image {
    align-items: center;
    display: flex;
}

main #price .right-image a {
    font-size: 22px;
    display: contents;
    text-decoration: none;
    color: #fff;
}

main #price .right-image img {
    margin-left: 5vh;
}

#aboutUs {
    background-color: #2C2E35;
}

main #aboutUs h2 {
    color: #B9E3E7;
}

main #aboutUs .left-content {
    color: #B9E3E7;
}

main #aboutUs .left-content p {
    color: #fff;
    margin: 40px 0 0 0;
}

#news a, #aboutUs a {
    margin-top: 40px;
    display: inline-block;
    color: #123A56;
    font-size: 22px;
    text-decoration: none;
}

#aboutUs a {
    color: #fff;
}

#aboutUs .right-image-content {
    position: relative;
    display: inline-block;
}

#aboutUs .right-image-content img {
    display: block;
}

#aboutUs .right-image-content .image-name {
    position: absolute;
    width: 100%;
    bottom: 5px;
    left: 0;
    color: #2C2E35;
    font-size: 34px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-align: center;
}

#aboutUs .right-image-content .image-name p {
    padding: 0 0 0 20px;
    margin: 0;
    font-size: 14px;
    text-align: left;
}

#aboutUs .right-image-content .image-name span {
    font-size: 16px;
}

.news-container {
    display: flex;
    flex-direction: column;
}

#news .news-container a {
    margin-top: 0;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 0.5px solid #123A56;
    color: #123A56;
    font-size: 14px;
}

#news .news-container a:first-child {
    border-top: 0.5px solid #123A56;
}

.container-padding {
    padding: 120px 170px;
}

footer {
    background-color: #000;
    color: #fff;
    padding: 0 175px;
    box-sizing: border-box;
    height: 305px;
}

.footer-container {
  margin: 0 auto;
  max-width: 1920px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 50px;
}

.footer-logo-link {
    display: block;
    text-decoration: none;
    margin-right: 70px;
}

.footer-logo-image {
    height: 100%;
    width: auto;
}

.footer-menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 14px;
}

.footer-menu-upper,
.footer-menu-lower {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer-menu-upper a,
.footer-menu-lower a {
    color: #fff;
    text-decoration: none;
    position: relative;
    box-sizing: border-box;
    height: 34px; /* Set the height of footer menu links */
    line-height: 34px; /* Center text vertically */
    display: inline-block; /* Ensure padding works correctly */
    text-align: center;
    flex: 1;
}

.footer-menu-upper a::after,
.footer-menu-lower a::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 0.5px;
    height: 34px;
    background-color: #fff;
}

.footer-menu-upper a:first-child::before,
.footer-menu-lower a:first-child::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 0.5px;
    height: 34px;
    background-color: #fff;
}

.footer-menu-separator {
    width: 100%;
    height: 0.5px;
    background-color: #fff;
    margin: 15px 0;
}

.footer-copyright {
    text-align: center;
    margin: 70px 0 50px 0;
    font-size: 14px;
}

.back-to-top {
    display: block;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    text-align: center;
    line-height: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 1);
}

@media (min-width: 1681px) and (max-width: 1920px) {
    .top-visual {
        height: 1016px;
    }
}

@media (min-width: 1441px) and (max-width: 1680px) {
    .top-visual {
        height: 986px;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .top-visual {
        height: 836px;
    }
}

@media (max-width: 1230px) {
    .container-padding {
        padding: 70px 70px;
    }
}

@media (max-width: 1120px) {
    .footer-menu {
        font-size: 12px;
    }
}

/* Tablet (769px to 1024px) */
@media (min-width: 1000px) and (max-width: 1024px) {
    .top-visual {
        height: 704px;
    }

    footer {
        padding: 0 70px;
    }
}

@media (max-width: 999px) {
    .footer-logo-link {
        display: none;
    }

    .container-padding {
        padding: 50px 20px;
    }

    .top-visual {
        height: 504px;
    }

    .top-text {
      top: 25%;
      left: 70px;
    }

    .top-text img {
        width: 84px;
        height: 102px;
    }

    .top-text h1 {
        font-size: 50px;
        text-shadow: 4px 4px 4px #123A56;
    }

    .top-text p {
        font-size: 16px;
        line-height: 36px;
        text-shadow: 4px 4px 4px #123A56;
    }


    nav#nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: black;
        z-index: 1000;
        padding: 10px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        height: auto;
        border-top: 0.5px solid #fff;
        border-right: none;
    }

    nav#nav-menu a {
        padding: 10px 0 10px 53px;
        border-left: none;
        border-bottom: 0.5px solid #fff;
        width: 100%;
        text-align: left;
    }

    nav#nav-menu a:last-child {
        border-bottom: none;
    }

    nav#nav-menu a::before {
        left: 20px;
        width: 23px;
        height: 28px;
    }

    .menu-toggle {
        display: block;
        margin: 0;
        padding: 0;
    }

    main section h2 {
        font-size: 45px;
    }

    main section h2 span {
        font-size: 18px;
        margin-left: 15px;
    }

    .content-container {
        flex-wrap: wrap;
        gap: 60px;
        flex-direction: column-reverse;
    }

    #price .content-container {
      flex-direction: column;
    }

    .content-container.reverse {
        flex-direction: column-reverse;
    }

    .left-content, #service .left-content {
        max-width: 100%;
        font-size: 22px;
    }

    .right-image, #service .right-image {
        max-width: 100%;
        text-align: center;
    }

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

    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .date {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .title {
        flex: none;
        margin-left: 0;
    }

    footer {
        padding: 0 20px;
        height: 250px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-menu {
        font-size: 12px;
    }

    .footer-menu-upper,
    .footer-menu-lower {
        flex-direction: row;
        width: 100%;
    }

    .footer-menu-upper a,
    .footer-menu-lower a {
        border-bottom: none;
    }

    .footer-copyright {
        margin: 50px 0 37px 0;
        font-size: 12px;
    }
}

@media (max-width: 650px) {
    #service .left-content .left-content-title h3 {
        font-size: 24px;
    }

    #service .left-content .left-content-title span {
      font-size: 10px;
    }

    #service .left-content ul li {
        font-size: 16px;
    }

    #service .left-content ul li::before {
        width: 24px;
        height: 30px;
    }

    #service .left-content ul li span, #service .left-content ul li p {
        font-size: 10px;
        padding-left: 0;
    }

    .footer-menu {
      font-size: 11px;
    }
}
