@charset "UTF-8";

:root {
  --color-bg: hsl(0, 0%, 100%);
  --color-primary: hsl(0, 100%, 0%);
  --color-secondary: hsl(0, 0%, 45%);
  --color-tertiary: hsl(0, 0%, 90%);
  --color-keyword: hsl(203, 81%, 58%);
  --color-attention: hsl(354, 70%, 54%);
  --color-check: hsl(59, 91%, 78%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

html {
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  /* value min 16px - max 18px | viewport 375px - 1280px */
  font-size: clamp(1rem, 0.948rem + 0.22vw, 1.125rem);
  line-height: 1.5;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: 0;
}

body {
  background: var(--color-bg);
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-optical-sizing: auto;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  text-spacing-trim: trim-auto;
  font-feature-settings: "palt";
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  color: var(--color-primary);
}

img,
video {
  width: 100%;
  height: auto;
  /* width: inherit;
  max-width: 100%; */
  vertical-align: middle;
}

p,
ul,
ol {
  margin-bottom: 1rem;
}

li {
  &:not(:last-child) {
    margin-bottom: 0.25rem;
  }
}

li ul,
li ol {
  margin-top: 1rem;
}

a {
  color: inherit;
}

.all-wrapper {
  margin: 0 auto;
  max-width: 1920px;
}

.inner {
  padding-inline: 1rem;
  @media (768px <= width) {
    padding-inline: 2rem;
  }
}

.sec {
  padding-bottom: 2.5rem;
  @media (768px <= width) {
    padding-bottom: 5rem;
  }
  &:first-of-type {
    padding-top: 2.5rem;
    @media (768px <= width) {
      padding-top: 5rem;
    }
  }
  &:last-of-type {
    padding-bottom: 5rem;
    background: image-set(url("../img/bg-960.webp") 1x, url("../img/bg-1920.webp") 2x) no-repeat left bottom;
    background-size: 100% auto;
    @media (768px <= width) {
      padding-bottom: 10rem;
    }
  }
}

.sec-title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--color-keyword);
  @media (768px <= width) {
    margin-bottom: 2rem;
    font-size: 2.5rem;
  }
}

.clip {
  background: image-set(url("../img/forest.webp") 1x, url("../img/forest@2x.webp") 2x);
  background-clip: text;
  background-size: cover;
  background-position: bottom;
  color: transparent;
}

.eyeblow {
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
  @media (768px <= width) {
    font-size: 1.25rem;
  }
}
picture + .eyeblow {
  margin-top: 1rem;
  @media (768px <= width) {
    margin-top: 2rem;
  }
}

.title {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  &.sub {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-keyword);
  }
  .attention {
    margin-top: 2rem;
    color: var(--color-keyword);
    text-decoration-color: none;
    text-decoration-thickness: 0;
    display: inline-block;
  }
}
.marker {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-decoration-line: underline;
  text-decoration-thickness: 0.25rem;
  text-decoration-color: var(--color-keyword);
  text-underline-offset: -0.125rem;
}

.no-sp {
  display: none;
  @media (768px <= width) {
    display: block;
  }
}

.no-pc {
  @media (768px <= width) {
    display: none;
  }
}

.align-right {
  text-align: right;
}

.attention {
  color: var(--color-attention);
  font-weight: 700;
}

#header {
  padding-block: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  border-bottom: 1px solid var(--color-tertiary);
  background: var(--color-bg);
  @media (768px <= width) {
    flex-direction: row;
  }
  #site-name {
    margin-bottom: 0.5rem;
    @media (768px <= width) {
      margin-bottom: 0;
    }
    img {
      display: block;
    }
  }
  #gnav {
    a {
      text-decoration: underline;
    }
    #gnav-list {
      margin-bottom: 0;
      font-weight: 700;
      display: flex;
      gap: 1rem;
    }
  }
  &.is-fixed {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s forwards;
  }
}
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

#hero {
  position: relative;
  width: 100%;
  height: auto;
  video {
    width: 100%;
    height: auto;
    /* max-height: 700px; */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }
  .inner {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-bg);
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    h2 {
      font-size: 1.25rem;
      font-weight: 700;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      line-height: 1.8;
      @media (400px <= width) {
        font-size: 1.5rem;
      }
      @media (640px <= width) {
        font-size: 2rem;
      }
      @media (768px <= width) {
        font-size: 2.5rem;
      }
      @media (960px <= width) {
        font-size: 3rem;
      }
      @media (1280px <= width) {
        font-size: 4rem;
      }
    }
  }
}

#concept {
  &.sec {
    padding-top: 5rem;
    background: image-set(url("../img/bg-r-960.webp") 1x, url("../img/bg-r-1920.webp") 2x) no-repeat left top;
    background-size: 100% auto;
    @media (768px <= width) {
      padding-top: 10rem;
    }
  }
}

.business-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  @media (768px <= width) {
    flex-direction: row;
    gap: 2rem;
  }
  .business {
    border: 1px solid var(--color-tertiary);
    border-radius: 1rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    .img {
      img {
        aspect-ratio: 1.82 / 1;
        object-fit: cover;
      }
    }
    .inner {
      padding-block: 1rem;
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      .text {
        flex-grow: 1;
      }
      p {
        color: var(--color-secondary);
      }
    }
  }

  /* large */
  &.large {
    gap: 2rem;
    @media (768px <= width) {
      gap: 4rem;
      flex-direction: column;
    }
    .business {
      flex-direction: column;
      box-shadow: none;
      border-radius: 0;
      border: none;
      @media (768px <= width) {
        flex-direction: row;
      }
      .inner {
        flex: 1;
        .title {
          font-size: 1.25rem;
          margin-bottom: 0.5rem;
          font-weight: 800;
          @media (768px <= width) {
            /* margin-top: 2rem; */
            font-size: 1.75rem;
            margin-bottom: 1rem;
          }
        }
      }
      .img {
        @media (768px <= width) {
          width: 50%;
          order: 2;
        }
      }
    }
  }
}

.btn {
  padding: 0.5rem 1rem;
  display: block;
  background: var(--color-keyword);
  color: var(--color-bg);
  border-radius: 0.5rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 320px;
  transition: opacity 0.3s ease;
  &:hover {
    opacity: 0.8;
  }
}

.btn-large {
  margin-inline: auto;
  padding: 1.5rem 2rem;
  display: block;
  background: var(--color-keyword);
  color: var(--color-bg);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  width: 25%;
  max-width: 640px;
  transition: opacity 0.3s ease;
  &:hover {
    opacity: 0.8;
  }
}

.btn-arrow {
  color: var(--color-primary);
  &::after {
    content: "→";
    display: inline-block;
    margin-left: 0.5rem;
  }
}

.news-list {
  li {
    padding-block: 1rem;
    border-bottom: 1px solid var(--color-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    @media (768px <= width) {
      flex-direction: row;
      gap: 1rem;
    }
    &:first-of-type {
      border-top: 1px solid var(--color-secondary);
    }
  }
  .news-date {
    color: var(--color-secondary);
  }
  a {
    color: var(--color-keyword);
    font-weight: 700;
    text-decoration: underline;
    line-height: 2;
  }
}

.dl-table {
  margin-bottom: 2rem;
  div {
    padding-block: 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid var(--color-tertiary);
    flex-direction: column;
    @media (768px <= width) {
      flex-direction: row;
      gap: 1rem;
    }
    &:last-of-type {
      border-bottom: 1px solid var(--color-tertiary);
    }
    dt {
      color: var(--color-keyword);
      width: 10%;
      min-width: 5em;
      font-weight: 700;
    }
  }
}

.ul-list {
  padding-left: 1em;
  li {
    text-indent: -1em;
    &::before {
      content: "・";
      font-family: monospace;
    }
  }
}

.ol-list {
  padding-left: 1.5em;
  counter-reset: ol-counter;
  li {
    counter-increment: ol-counter;
    text-indent: -1.5em;
    &::before {
      content: counter(ol-counter) ". ";
      font-family: monospace;
    }
  }
}

.tel-number {
  font-size: 1.5rem;
  font-weight: 900;
  @media (768px <= width) {
    font-size: 2rem;
  }
}

.fig {
  margin: 2rem auto 4rem;
  padding: 2rem;
  background: var(--color-tertiary);
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  max-width: 1152px;
  @media (768px <= width) {
    flex-direction: row;
  }
  figcaption {
    margin: 0.5rem 0;
  }
}

.mail-form-area {
  background: var(--color-check);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-tertiary);
  padding: 1rem;
  border-radius: 1rem;
  @media (768px <= width) {
    padding: 2rem;
  }
  .mail-form-table {
    width: 100%;
  }
  th {
    white-space: nowrap;
    @media (768px > width) {
      margin-bottom: -0.5rem;
    }
  }
  th,
  td {
    padding: 0.5rem 0;
    text-align: left;
    @media (768px > width) {
      display: block;
    }
    @media (768px <= width) {
      padding: 0.5rem;
    }
  }
  input:not([type="checkbox"]),
  textarea,
  select {
    padding: 0.5rem;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1) inset;
    border: 1px solid var(--color-tertiary);
    font-size: 1rem;
    color: var(--color-primary);
    @media (768px > width) {
      width: 100%;
    }
  }
  input[type="checkbox"] {
    scale: 1.5;
    margin-right: 1rem;
    cursor: pointer;
  }
  a {
    text-decoration: underline;
    color: var(--color-keyword);
  }
  .btn-area {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: end;
    @media (768px <= width) {
      flex-direction: row;
    }
  }
  input[type="submit"] {
    background: var(--color-keyword);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    color: var(--color-bg);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding-block: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    @media (768px <= width) {
      width: 50%;
    }
    &:hover {
      opacity: 0.8;
    }
  }
  input[type="reset"],
  input[type="button"] {
    background: var(--color-secondary);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    color: var(--color-bg);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    @media (768px <= width) {
      width: 25%;
    }
    &:hover {
      opacity: 0.8;
    }
  }
}

#footer {
  padding-top: 1rem;
  background: image-set(url("../img/forest.webp") 1x, url("../img/forest@2x.webp") 2x);
  @media (768px <= width) {
    padding-top: 2rem;
    font-size: 0.875rem;
  }
  p,
  li a {
    color: var(--color-secondary);
  }
  #sitemap {
    margin-bottom: 1rem;
    padding-block: 2rem 4rem;
    background: var(--color-tertiary);
    display: flex;
    gap: 1rem;
    flex-direction: column;
    @media (768px <= width) {
      flex-direction: row;
      gap: 2rem;
      margin-bottom: 2rem;
      padding-block: 4rem 8rem;
    }
    .header {
      margin-right: auto;
    }
    .sec-title {
      margin-bottom: 0.5rem;
      font-size: 1rem;
      font-weight: 700;
      color: inherit;
    }
    :not(.header) {
      .sec-title {
        border-top: 1px solid var(--color-bg);
        padding-top: 1rem;
        @media (768px <= width) {
          border-top: none;
          padding-top: 0;
        }
      }
    }
  }
  #footer-bottom {
    background: var(--color-primary);
    font-size: 0.75rem;
    #copyright {
      margin-bottom: 0;
      padding: 1rem 0;
      color: var(--color-bg);
      text-align: center;
    }
  }
}
