/* 基本設定 */
:root {
  --bg-color: #FFFAF4;
  --accent-red: #730000;
  --text-color: #333;
  --grid-color: rgba(0, 0, 0, 0.03);
}

.bask {
  font-family: "baskerville-urw", serif;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Zen Old Mincho", serif;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
  /* 方眼紙風のグリッド背景 */
  color: var(--text-color);
  line-height: 1.8;
}

.flex {
  display: flex;
}

.flex.column {
  flex-flow: column;
}

.flex-align-start {
  align-items: flex-start;
}

.flex-align-center {
  align-items: center;
}

.flex-align-end{
  align-items: flex-end;
}

.flex-justify-center {
  justify-content: center;
}

.flex-justify-end{
  justify-content: f;
}

.flex-between {
  justify-content: space-between;
}

img {
  width: 100%;
  height: auto;
}

header {
  padding: 1.8rem 2rem;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
      background-color: var(--bg-color);
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 80px 80px;
  z-index: 9;
}

nav {
  gap: 2em;
}

nav a {
  text-decoration: none;
  color: var(--accent-red);
  display: block;
  line-height: 1;
}

nav a:hover{
  opacity: 0.5;
}

nav .menu{
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 2em;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  border-right: 1px solid var(--accent-red);
  border-left: 1px solid var(--accent-red);
  box-sizing: border-box;
}

.partners {
  border-bottom: 1px solid var(--accent-red);
}

.partners .container {
  border-left: none;
  border-right: none;
}


.img-placeholder {
  width: 100%;
  height: 100%;
}

.section-title {
  font-family: "baskerville-urw", serif;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
}

h2.section-title {
  color: var(--accent-red);
}

.center {
  text-align: center;
}

.section-title.head {
  border-bottom: 1px solid var(--accent-red);
  padding: 1em 0;
  color: var(--accent-red);
}

/* Hero */
.hero {
  display: flex;
  height: 100vh;
  align-items: center;
  padding: 0;
  position: relative;
border-bottom: 1px solid var(--accent-red);
}

.hero-content {
  width: 50%;
  height: 100%;
  box-sizing: border-box;
  padding-left: 5%;
}

.hero-title {
  font-size: clamp(48px, 12.5vw, 160px);
  line-height: 1.1;
  color: var(--accent-red);
  height: fit-content;
  width: max-content;
  position: relative;
  margin: 0;
  letter-spacing: -3%;
      mix-blend-mode: color-burn;
}
.hero-title br{
  display: none;
}

.split div{
  opacity: 0;
}

.hero-subline {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  width: max-content;
  height: fit-content;
}

.hero-subline.title{
      font-size: 1.7em;
    margin-bottom: 0;
    margin-top: 2em;
        font-weight: 600;
}

.hero-image {
  height: 100%;
  display: flex;
  justify-content: space-between;
  width: 50%;
}

.hero .main-visual {
    width: 100%;
    height: calc(100% - 82px);
  
}

.hero .kv #kv-mov {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 160px 0 0 0;
}

.hero .kv::before{
  content: '';
}

.hero .fv #fv-mov {
  width: 50%;
  border-radius: 0 80px;
}

.about {
  position: relative;
}

.about .container {
  border-left: none;
  justify-content: flex-end;
  padding-top: 20%;
  padding-bottom: 18.5%;
}

.about .visual {
  width: 50%;
  position: absolute;
  left: 0;
  top: 0;
  aspect-ratio: 3.8 / 4;
}

h3.sub-title, .body-title{
      font-weight: 600;
}

.about .visual img {
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0 0 160px 0;
}

.about .btn-circle {
  margin-left: auto;
}

.txt {
  width: 50%;
}

.about .txt {
  width: 40%;
  padding: 0 5%;
}

.about h2.section-title {
  position: relative;
}

.about h2.section-title::before {
  content: '';
}

#aboutus{
  border-bottom: 1px solid var(--accent-red);
}

#aboutus .container{
  padding-bottom: 10%;
}

.aboutus.cont .section-title{
  line-height: 1.5;
}

/* Service */
.services .head .section-title {
  padding-left: calc((100% - 1100px) / 2 - 1.5em);
}

.services section {
  border-top: 1px solid var(--accent-red);
}

.services .container {
  padding-top: 0;
  padding-bottom: 15%;
}

.service-item {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.service-item.reverse {
  flex-direction: row-reverse;
}

.service-img {
  width: 55%;
  height: fit-content;
  aspect-ratio: 16 / 9;
}

.service-img img {
  position: absolute;
  top: -25%;
  left: -10%;
  width: 60%;
  border-radius: 180px;
}

.reverse .service-img img {
  right: -10%;
  left: inherit;
}

.circle-bg {
  border-radius: 50%;
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}

.service-info.txt {
  width: 35%;
  padding: 0 10% 0 0;
  position: relative;
  top: -1.9em;
}

.reverse .service-info.txt {
  padding: 0 0 0 10%;
}

.service-info.txt ul{
  padding-left:1em;
}

.service-info h3 {
  margin-top: 0;
  line-height: 1;
  color: var(--accent-red);
  font-weight: 400;
}

span.s{
  font-size: 0.7em;
}

.service-info h3.bottom{
      margin-bottom: 0;
    margin-top: 1.5em;
}

.service-info p {
  font-size: 1em;
  margin-top: 2.5em;
}

.service-info p .body-title{
  display: block;
  font-size: 1.15em;
  margin-bottom: 0.25em;
}

.workshop .container {
  padding-bottom: 18%;
}

.workshop .btn-circle {
  position: absolute;
  right: -25%;
}

.education {
  border-bottom: 1px solid var(--accent-red);
}

.education .service-item {
  flex-flow: column;
  align-items: center;
  margin-top: -15%;
}

.education .service-img img {
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
}

.education .service-info.txt {
  width: 60%;
  padding: 0;
  position: static;
  margin-top: 8%;
}

.works .container {
  padding: 0 0 4rem 0;
}

.works-grid {
  border-bottom: 1px solid var(--accent-red);
}

.work-card {
  width: calc(100% / 3);
  border-right: 1px solid var(--accent-red);
}

.work-card:last-child {
  border-right: none;
}

.work-card .work-thumb {
  aspect-ratio: 16 / 9;
  height: auto;
  background: #c0c0c0;
}

.work-card .work-thumb picture {
  display: block;
  height: 100%;
}

.work-card .work-thumb img {
  height: 100%;
  object-fit: cover;
}

.work-card .txt {
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.work-card .work-meta {
  color: var(--accent-red);
}

.works .btn-circle {
  margin-left: auto;
  margin-right: auto;
  margin-top: -1rem;
}

/* Buttons */
.btn-circle {
  font-family: "baskerville-urw", serif;
  font-weight: 400;
  width: 150px;
  height: 150px;
  border: 1px solid #C73A3A;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  color: #C73A3A;
  font-size: 0.9rem;
  transition: 0.3s;
  margin-top: 30px;
  position: relative;
  line-height: 1.5;
}

.btn-circle .arrow {
  position: absolute;
  width: 3rem;
  top: 0;
  bottom: 0;
  margin: auto;
  right: -2rem;
}

.btn-circle:hover {
  opacity: 0.5;
}

.btn-circle .arrow.down {
  transform: rotate(90deg);
  top: inherit;
  left: 0;
  right: 0;
}

.logo-grid {
  gap: 10%;
}

.logo-grid img {
  height: 4rem;
  width: auto;
}

/* Footer */
.footer .bg {
  background: var(--accent-red);
}

.under .footer{
  border-top: 1px solid var(--accent-red);
}

.footer-grid {
  display: flex;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  border-right: 1px solid var(--bg-color);
  border-left: 1px solid var(--bg-color);
  box-sizing: border-box;
  position: relative;
}

.footer-grid .divide {
  width: calc(50% - 300px);
  border-bottom: 1px solid var(--bg-color);
  height: 1px;
  position: absolute;
  top: 135px;
}

.footer-item {
  flex: 1;
  padding: 100px 90px;
  text-align: center;
  color: #fff;
  border-right: 1px solid var(--bg-color);
}

.footer-item:last-child {
  border-right: none;
}

.footer-item p {
  text-align: left;
}

.footer-item .btn-circle {
  border: 1px solid #fff;
  color: #fff;
}

.footer-item .btn-circle:hover {
  background: none;
  opacity: 0.5;
}

.sub-footer {
  padding: 4rem 0;
}

.social-links {
  gap: 1rem;
  margin-top: 1rem;
}

.social-links img {
  height: 1.5rem;
  width: auto;
}

.copyright {
  color: var(--accent-red);
  font-size: 0.8rem;
}

.scrl {
  width: 3rem;
  height: 3rem;
  background: var(--accent-red);
  position: fixed;
  right: 0;
  bottom: 0;
  border-radius: 1rem 0 0 0;
  cursor: pointer;
}

.scrl.top::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1px solid var(--bg-color);
  border-bottom: 1px solid var(--bg-color);
  position: absolute;
  margin-top: 0.6rem;
  transform: rotate(-135deg);
}

.scrl:hover {
  opacity: 0.5;
}

nav .toggle.btn{
  display: none;
}

section.head{
  margin-top: 4rem;
}

section.cont{
  border-bottom: 1px solid var(--accent-red);
}
section.cont:last-of-type{
  border-bottom: none;
}

section.cont .section-title{
      line-height: 1;
    color: var(--accent-red);
    font-weight: 400;
        font-size: 1.85rem;
}

section.cont .txt{
  width: 60%;
}
section.cont .txt .w50{
  gap: 2rem;
  margin-top: 2rem;
}
section.cont .txt .w50 .visual{
  width: 50%;
}
section.cont .txt .w50 .txt{
  width: 50%;
}
section.cont .txt ul{
  padding-left: 0;
}

section.cont .txt li{
  list-style: none;
}

section.cont .txt li.head{
  font-weight: 600;
}

section.cont.list .txt{
  margin-bottom: 1.5em;
}

section.cont.list .txt h5,
section.cont.list .txt p{
  margin: 0;
  font-size: 1rem;
}

section.cont.list .txt p{
  font-size: 0.9em;
}

br.sp{
  display: none;
}

/* レスポンシブ */
@media (max-width: 768px) {

  br.sp{
    display: block;
  }
  header{
    padding: 1.5rem;
    box-sizing: border-box;
    width: 100%;
  }

  nav{
    width: 100%;
  }

  nav .toggle.btn{
    display: flex;
    width: 2rem;
    height: 1rem;
    margin-left: auto;
    justify-content: space-evenly;
    z-index: 1;
  }

  nav .toggle.btn::before,
  nav .toggle.btn::after{
        content: '';
        width: 100%;
        height: 1px;
        border-bottom: 1px solid var(--accent-red);
        position: relative;
        transition: transform 0.5s;

  }
  nav .toggle.btn.off::before{
        transform: rotate(20deg);
        top: 17.5%;
  }
  nav .toggle.btn.off::after{
        transform: rotate(-20deg);
        bottom: 17.5%;
  }
  nav .menu{
    display: none;
  }

  nav .menu.on{
        display: flex;
        flex-flow: column;
        position: fixed;
        width: 100%;
        height: 100%;
  background-color: var(--bg-color);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
        left: 0;
        top: 0;
        align-items: center;
        justify-content: center;
  }

  #ci{
    z-index: 1;
  }

  .hero {
    flex-direction: column;

  }

  .hero-image {
    flex-flow: column-reverse;
    justify-content: end;
    width: 100%;
        position: absolute;
        z-index: -1;
  }

  .hero .main-visual.kv {
    width: 100%;
  }

  .hero .main-visual.s {
    position: absolute;
    width: 50%;
    bottom: 0;
    right: 0;
  }

  .hero .fv #fv-mov {
    width: 100%;
  }

  .hero-content{
width: 100%;
    padding-left: 7%;
            justify-content: flex-end;
            line-height: 1;
  }
  .hero-title {
    font-size: clamp(48px, 16vw, 160px);
    width: max-content;
    align-items: flex-start;
  }

  .hero-subline.title{
    font-size: 1.4em;
    margin-top: 1em;
  }
  .hero-title br{
    display: block;
  }

  .hero-subline{
    z-index: 1;
    line-height: 1.75;
  }

  .logo-grid img{
    height: 3rem;
  }

  .container.flex{
    flex-flow: column;
  }
  .container{
    width: calc(100% - 2rem);
  }

  .services .container{
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .service-img{
    width: 100%;
  }
  .service-img img,
  .service-info.txt,
section.cont .txt{
    position: static;
    width: 100%;
  }

  .service-info.txt,.reverse .service-info.txt{
    padding: 0;
    text-align: left;
  }

  .about .container{
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    border-right: none;
  }

  .about .visual{
    position: static;
    width: 100%;
  }

  .about .txt{
    box-sizing: border-box;
    width: 100%;
    margin-top: 2rem;
  }

  .about .btn-circle{
    margin-right: auto;
  }

  .services .head .section-title{
    padding-left: 1rem;
  }
  .service-item,
  .service-item.reverse {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .works-grid{
    flex-wrap: wrap;
  }
  
  .work-card{
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--accent-red);
  }

  .work-card:last-child{
    border-bottom: none;
  }

  .workshop .btn-circle{
    position: static;
    margin-left: auto;
    margin-right: auto;
  }

  .education .service-info.txt{
    width: 100%;
    margin-top: 0;
  }

  .education .service-item{
    margin-top: 0;
  }

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

  .footer-item{
    padding: 10%;
  }
  .footer-grid .divide{
    position: static;
    width: 100%;
  }
  .footer-item:last-child{
    padding-bottom: 16%;
  }
  section.cont .txt .w50{
    flex-flow: column;
    gap: 0.5rem;
  }
  section.cont .txt .w50 .visual,
  section.cont .txt .w50 .txt{
    width: 100%;
  }
}