* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

body {
    background: var(--baseColor);
}

button {
    cursor: pointer;
}

/*------------------------------*/
/* 変数 */
/*------------------------------*/

:root {
    --accentColor: #FF9E42;
    --bluePrimary: #0E94C3;
    --blueSecondary: #005C80;
    --baseColor: #FFFFFA; 
    --textColor: #1A6784; 
    --h2FontSize: clamp(1.5rem, 1.273rem + 0.97vw, 2rem); 
    --h3FontSize: clamp(1rem, 0.773rem + 0.97vw, 1.5rem);
    --pFontSize: clamp(0.813rem, 0.727rem + 0.36vw, 1rem);
    --buttonPadding: 16px 40px;
    --notoSansJp: 'Noto Sans JP';
    --barlowCondensed: 'Barlow Condensed';
    --letterSpace: 0.08em;
}


/*------------------------------*/
/* layout */
/*------------------------------*/

.layout {
    display: grid;
    grid-template-columns: 78.75vw 1fr;
}


/*------------------------------*/
/* sidebar */
/*------------------------------*/

/* サイドバー（常時追従） */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, -1.25rem + 3.13vw, 2.5rem);
  padding: clamp(1.5rem, -1.5rem + 3.75vw, 3rem);
  background-color: #F2FCFF;
}

/* PCヘッダー */
.header h1 a img{
  width: 100%;
  height: auto;
}

/* LINEボタン */
.button__line {
  width: 100%;
  padding-block: clamp(0.5rem, -0.5rem + 1.25vw, 1rem);
  background-color: #20D058;
  border: none;
  border-radius: 6px;
}

.button__line a {
  font-family: var(--notoSansJp);
  font-size: 16px;
  font-weight: bold;
  color: var(--baseColor);
}

/* PC nav */

.nav {
  background-color: var(--bluePrimary);
  padding: clamp(1.25rem, -1.25rem + 3.13vw, 2.5rem) clamp(1rem, -1rem + 2.5vw, 2rem);
  border-radius: 6px;
}

.nav ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav ul li a {
  color: var(--baseColor);
  font-family: var(--notoSansJp);
  font-weight: normal;
  font-size: 16px;
  letter-spacing: var(--letterSpace);
}

.btn-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-links li:first-of-type {
  display: flex;
  gap: 12px;
}

.button__blue,
.button__blue2,
.button__orange {
  width: 100%;
  padding-block: clamp(0.5rem, -0.5rem + 1.25vw, 1rem);
  font-size: 16px;
  font-family: var(--notoSansJp);
  border: none;
  border-radius: 6px;
}

.button__blue {
  background-color: var(--bluePrimary);
}

.button__blue2 {
  background-color: var(--blueSecondary);
}

.button__orange {
  background-color: var(--accentColor);
}

.btn-links button a {
  color: var(--baseColor);
}

small {
  display: flex;
  justify-content: center;
  color: var(--blueSecondary);
  font-size: 16px;
  font-family: var(--notoSansJp);
}

/* モバイルメニュー（非表示） */
.mobile-nav-toggle,
.mobile-nav {
  display: none;
}

/* ヘッダー＆ナビ（共通） */
.header {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.nav ul {
  list-style: none;
  padding: 0;
}
.nav li {
  margin: 0.5rem 0;
}
.nav a {
  text-decoration: none;
  color: #333;
}

/* --- レスポンシブ（1280px以下） --- */
@media (max-width: 1280px) {
  .layout {
    grid-template-columns: 1fr; /* 1カラムに */
  }

  .sidebar {
    display: none; /* PC用サイドバー非表示 */
  }

  #toggleButton {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-family: var(--barlowCondensed);
    font-size:20px;
    color: var(--blueSecondary);
    background-color: #F2FCFF;
  }

  #toggleButton img {
    width: 48px;
  }

  .mobile-nav-toggle {
    width: 100%;
    display: flex;
    position: fixed;
    bottom: 0;
    font-size: 2rem;
    background: none;
    border: none;
    z-index: 1000;
    cursor: pointer;
  }

  .mobile-nav-toggle > button {
    width: 50%;
    padding: 16px;
    border: none;
  }

  .mobile-nav-toggle button:last-of-type {
    font-size: clamp(0.813rem, 0.634rem + 0.76vw, 1rem);
    background-color: var(--accentColor);
  }

  .mobile-nav-toggle button:last-of-type a {
    font-family: var(--notoSansJp);
    font-weight: 500;
    color: var(--baseColor);
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: #F2FCFF;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    padding: 1rem;
    z-index: 999;
    flex-direction: column;
  }

  .mobile-nav.active {
    display: flex;
  }

  #closeNav {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
}


/*------------------------------*/
/* メインコンテンツ */
/*------------------------------*/

main {
    height: 100%;
    padding: 0 13%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.container {
    height: auto;
    width: 100%;
    margin-bottom: 10vh;
}

.container:last-child {
    margin-bottom: 3rem;
}

.container h1 {
    display: block;
    font-size: clamp(1.5rem, -0.429rem + 8.57vw, 2.25rem);
    font-weight: bold;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 4rem;
    color: var(--blueSecondary);
}

.container h2 {
    text-align: center;
    font-size: clamp(1rem, 0.679rem + 1.43vw, 1.125rem);
    font-weight: bold;
    margin-bottom: 3rem;
    color: var(--blueSecondary);
}

.container p {
    font-size: clamp(0.813rem, 0.33rem + 2.14vw, 1rem);
    line-height: 1.4rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--blueSecondary);
}

.container ul li {
    font-size: clamp(0.813rem, 0.33rem + 2.14vw, 1rem);
    margin-bottom: .5rem;
    color: var(--blueSecondary);
}


/*------------------------------*/
/* footer */
/*------------------------------*/

footer {
    width: 100%;
    display: flex;
    align-items: center;
    padding-right: clamp(5.75rem, 1.583rem + 8.68vw, 12rem);
    margin-bottom: 100px;
}

.footer__credit {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer__credit--detail {
    display: flex;
    gap: 32px;
}

.footer__corpname ,
.footer__credit--detail small,
.footer__credit--detail a {
  color: var(--blueSecondary);
  font-size: clamp(0.813rem, 0.767rem + 0.19vw, 1rem);
  font-family: var(--notoSansJp);
}

.footer__info {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: clamp(1.75rem, -1.417rem + 6.6vw, 6.5rem);
}

.footer__address h4 {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 0.939rem + 0.26vw, 1.25rem);
    font-family: var(--notoSansJp);
    font-weight: 600;
    font-size: clamp(1.5rem, 1.379rem + 0.52vw, 2rem);
    color: var(--blueSecondary);
    margin-bottom: clamp(1rem, 0.879rem + 0.52vw, 1.5rem);
}

.footer__address--number {
    display: flex;
    gap: clamp(1rem, 0.879rem + 0.52vw, 1.5rem);
}

.footer__address--number a,
.footer__address--number > span {
    color: var(--blueSecondary);
}

.footer__address p {
  font-family: var(--notoSansJp);
  font-size: clamp(1rem, 0.939rem + 0.26vw, 1.25rem);
  color: var(--blueSecondary);
  margin-bottom: 12px;
}

.footer__address p:last-child {
  margin-bottom: clamp(2rem, 1.879rem + 0.52vw, 2.5rem);
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links > .button__blue a,
.footer__links > .button__blue2 a {
  font-weight: 500;
  font-size: clamp(1rem, 0.879rem + 0.52vw, 1.5rem);
  color: var(--baseColor);
}


@media (max-width: 768px) {
    footer {
        flex-direction: column-reverse;
        gap: 48px;
        padding-right: 0;
        padding-left: 0;
    }

    .footer__credit--logo {
        width: 90%;
    }

    .footer__credit--logo img {
        width: 100%;
    }

    .footer__credit--detail {
        justify-content: space-between;
    }

    .footer__info {
        width: auto;
        padding-left: 0;
    }

    .footer__links {
        flex-direction: column;
        gap: 16px;
    }
}