@charset "UTF-8";

/*css*/
:root {
  --header-height: 0px;
  --hf-bg-color: #009b9f;
  --hf-bg-color-o: #009b9fb3;
  --hf-ft-color: #f0f6dd;
  --mn-color: #ee6023;
}

/* ベース：モバイルファースト */
html {
    margin: 0;
    font-size: 16px;
    font-family: sans-serif;
}

p, li, td {
    line-height: 1.7;
}

body {
    margin: 0;
}

h1, h2, h3 {
    font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
}
h1 {
  font-weight: 700;
}

h2, h3 {
  font-weight: 500;
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--hf-bg-color), #fff) 1;
    font-size: 1.3rem;
    scroll-margin-top: var(--header-height);
    text-align: left;
    line-height: 1.3;
}

h3 {
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, var(--hf-bg-color), #fff) 1;
    text-align: left;
}

h5 {
    padding-top: 0.75rem;
    padding: 0;
    font-size: 0.85rem;
}

a {
    color: var(--mn-color);
}

a:link {
    text-decoration: none;
}
a:visited {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
a:active {
    text-decoration: underline;
}

.site-header a, footer a {
    color: var(--hf-ft-color);
}

/* ヘッダー */
.site-header {
    position: fixed;
    top:0;
    margin: 0;
    padding: 0;
    width: 100%;
    z-index: 1000;
    transform: none;
    background-color: var(--hf-bg-color);
}

.header-inner{
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
}

.gnav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    display: none;
}

.gnav ul {
    list-style: none;
    margin: 0;
    padding: 1rem;
    gap: 1.5rem;
}


.gnav li a {
    padding: 10px 0;
}

.gnav a:hover {
    opacity: 0.7;
    text-decoration: none;
}

.side-footer {
    display:none;
}


/* ハンバーガー */
.hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hf-ft-color-color);
}

/* 開いた状態 */
.site-header.is-open .gnav {
    display: block;
    background-color: var(--hf-bg-color);
    color: #FFFFFF;
    text-align: center;
}
.site-header.is-open li {
    font-size: 1.1rem;
    padding: 7px;
}

.hamburger {
    margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hf-ft-color);
  margin: 5px 0;
  transition: 0.3s;
}

.site-header.is-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.site-header.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hf-ft-color-color);
    text-decoration: none;
}
.logo:hover {
    opacity: 0.85;
}
.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--hf-ft-color);
}

/* メイン */
main {
    padding-top: var(--header-height);
}

/* 見出し部分 */
.catchcopy {
    font-size: 46px;
    letter-spacing: 0.05em;;
}

.catchcopy {
    transform: translate(20%, 0);
}
.index-name {
    font-size: 0.9rem;
    transform: translate(20%, -20%);
}

.hero-text p {
    font-feature-settings:"palt";
}

.page-hero-home {
    margin-top: 0;
    margin-bottom: 1.5rem;
    position:relative;
    background-image: url(../images/先生ズ.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 60vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-hero-life {
    margin-top: 0;
    margin-bottom: 1.5rem;
    position:relative;
    background-image: url(../images/ui_hero.JPG);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 60vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    
}

.page-hero-career {
    margin-top: 0;
    margin-bottom: 1.5rem;
    position:relative;
    background-image: url(../images/そいまんhero.JPG);
    background-repeat: no-repeat;
    background-position: center 0%;
    background-size: cover;
    min-height: 60vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-hero-admissions {
    margin-top: 0;
    margin-bottom: 1.5rem;
    position:relative;
    background-image: url(../images/site_a.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 60vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-hero-access {
    margin-top: 0;
    margin-bottom: 1.5rem;
    position:relative;
    background-image: url(../images/kousya1.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 60vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.page-hero-contact {
    margin-top: 0;
    margin-bottom: 1.5rem;
    position:relative;
    background-image: url(../images/けんじょうhero.JPG);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 60vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-text {
    position:absolute;
    top: 70%;
    left: 30%;
    transform: translate(-50%, -50%);
    color: white;
}



.page-hero-home::before, .page-hero-life::before, 
.page-hero-career::before, .page-hero-admissions::before, 
.page-hero-access::before, .page-hero-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* 黒＋透過 */
}

/* コンテンツ */
.video-container{
    width:100%;
    max-width:900px;
    margin:auto;
    aspect-ratio:16/9;
}

.video-container iframe{
    width:100%;
    height:100%;
    border:none;
    border-radius:12px;
}

.content {
    margin: auto;
    padding-left: 4%;
    padding-right: 4%;
    max-width: 1100px;
}

.media-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.acs-info {
    border-collapse: collapse;
    margin: auto;
}

.acs-info th, .acs-info td {
    border: 1px solid #DBDBDB;
    padding: 20px;
    vertical-align: middle;
}

.acs-info th {
    width: 120px;
    text-align: left;
    vertical-align: top;
}

.seihuku img {
    width: 100%;
    max-width: 1000px;
}

/* ポリシー*/
.grid{
    display:grid;
    justify-content: center;
    row-gap: 0;
    column-gap: 2rem;
}
.card{
    position: relative;
    overflow: hidden;
    background:#f0f0f0;
    border-radius:18px;
    padding:2rem;
    margin:2rem 0;
    box-shadow:0 8px 24px rgba(0,0,0,.06);
    transition:.25s;
}
.card::before{
    content:"";
    position:absolute;
    width:180px;
    height:180px;

    right:-40px;
    top:-40px;

    border-radius:50%;

    background:rgba(0,155,159,.08);
}

.card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 36px rgba(0,0,0,.10);
}

.activity-swiper{

    width:100%;
    height:220px;

    border-radius:0;
    overflow:hidden;

    margin-bottom:1rem;

}
.activity-card{
    transition:.3s;
}

.swiper-slide{
    width:100%;
    height:100%;
}

.swiper-slide img{
    transition:transform .8s;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.activity-card:hover img{
    transform:scale(1.05);
}

/*カード写真調整*/
.activity-card{
    overflow:hidden;
    padding:0;
}
.activity-photo{
    height:240px;
}
.activity-body{
    padding:1.8rem;
}
.activity-body h3{
    margin-top:0;
    margin-bottom:.8rem;
}

/*写真位置調整4パターン*/
.swiper-slide img.photo-bottom{
    object-position:center 70%;
}

.swiper-slide img.photo-top{
    object-position:center top;
}

.swiper-slide img.photo-left{
    object-position:left center;
}

.swiper-slide img.photo-right{
    object-position:right center;
}
.pswp{
    --pswp-bg: rgba(0,0,0,.92);
}

/*マップ*/
.map-wrap {
  width: 100%;
  height: 50vh;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/*FAQ*/
.faq-question {
  position: relative;
  width: 100%;
  min-height: 56px;          /* 指1本で余裕 */
  padding: 1em 3em 1em 1em;  /* 右はV分あける */
  text-align: left;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* FAQ Vマーク */
.faq-question::after {
  content: "";
  position: absolute;
  right: 1em;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-50%) rotate(45deg); /* ▼ */
  transition: transform 0.3s ease;
}

/* 開いた状態（▲） */
.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(-135deg);
}

.faq-question:active {
  background: #eaeaea;
}
@media (hover: hover) {
  .faq-question:hover {
    background: #ededed;
  }
}

.faq-answer {
  display: none;
  padding: 1em;
  background: #fafafa;
  line-height: 1.6;
  font-size: 1.1rem;
}

#rinen, #contact-form {
    scroll-padding-top: var(--header-height);
}


/* ページトップへ */
#backToTop {
  position: fixed;
  right: 1rem;
  bottom: 1.5rem;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;

  background:var(--hf-bg-color-o);
  cursor: pointer;

  z-index: 999;
  transition: bottom 0.2s ease, opacity 0.3s;
}

/* V字（↑矢印） */
#backToTop::before,
#backToTop::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;

  width: 14px;
  height: 2px;
  background: var(--hf-ft-color);

  transform-origin: center;
}

/* 左の線 */
#backToTop::before {
  transform: translate(-20%, -50%) rotate(45deg);
}

/* 右の線 */
#backToTop::after {
  transform: translate(-80%, -50%) rotate(-45deg);
}

/* フッター手前で持ち上げる */
#backToTop.is-stop {
  bottom: calc(1.5rem + var(--footer-overlap));
}

/* 表示状態 */
#backToTop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#backToTop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:focus-visible {
  outline: 2px solid currentColor;
}


/* SPで少し大きく */
@media (max-width: 767px) {
  #backToTop {
    width: 48px;
    height: 48px;
  }
}


/* フッター */
footer {
    width: auto;
    margin-top: 10px;
    margin-bottom: 0;
    padding-top: 5vh;
    padding-bottom: 30px;
    background-color: #444444;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    color: var(--hf-ft-color);
    text-align: center;
}

footer a:link, footer a:visited {
    color: #888888;
}
footer a:hover {
    color: var(--hf-ft-color);
}

.items {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 4%;
    padding-right: 4%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.item {
    text-align: left;
}

.item ul {
    list-style-type: "〉";
    text-align: left;
}

.footer-sns {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-sns img {
  width: 28px;
  height: 28px;
  display: block;
}

.copyright {
    position: relative;
    left: 0;
    bottom: -30px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--hf-bg-color);
    color: #FFFFFF;
    text-align: center;
}


/* PC版 */
@media(min-width: 768px) {
    :root{
        --header-height: 0px;
        --header-width: 280px;
        --sidebar-width: 0px;
    }
    html {
        scroll-padding-left: var(--header-width);
        scroll-behavior: smooth;
    }

    /*ヘッダー*/
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--header-width);      /* 縦ヘッダーの幅 */
        height: 100vh;

        display: flex;
        flex-direction: column;
    }

    .gnav {
        flex: 1;
    }

    .side-footer {
        padding: 1rem;
        display: flex;

        gap: 12px;
        justify-content: center;
    }

    .side-footer img {
        width: 30px;
        height: 30px;
    }

    .header-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
        padding: 1.5rem 1rem;
    }
    
    .logo {
        margin-bottom: 2rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .gnav {
        position: static;
        display: block;
        width: 100%;
        margin-left: 0;
        background-color: var(--hf-bg-color);
    }

    .gnav ul {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }

    .gnav a {
        font-size: 1.1rem;
        line-height: 3.0;
    }

    .gnav a:hover {
        border-bottom: 2px solid var(--hf-ft-color);
    }

    /*ハンバーガー*/
    .hamburger {
        display: none;
    }

    /*
    .hamburger {
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    padding: 0.75rem;
    z-index: 1100;
    }
    */
    
    
    /*見出しテキスト*/
    .home-name {
        font-size: 1rem;
        transform: translate(0, -50%);
    }

    /*見出し画像*/
    .page-hero-access, .page-hero-admissions, .page-hero-career,
    .page-hero-contact, .page-hero-home, .page-hero-life {
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    }

    .page-hero-career {
        background-position: center 30%;
    }
    
    /*コンテンツ*/
    .media-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .media-hero {
        max-width: 40vw;
    }

    main, footer {
        margin-left: var(--header-width); /* headerのwidthと同じ */
        margin-right: 0;
        padding-top: 0;
    }

    .two-cc {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .two-cc ul {
        list-style-type: "〉";
    }

    .grid{
        grid-template-columns:repeat(3,1fr);
        justify-content: center;
        gap:2rem;
        align-items:stretch;
    }

    /* マップ */
    .access {
        max-width: 900px;
        margin: 0 auto;
    }

    /*フッター*/
    footer {
        padding-top: 10vh;
        clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    }
}