@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --riff-color-main: #333333;
  --riff-color-accent: #0056b3;
  --riff-color-text: #4a4a4a;
  --riff-color-bg: #ffffff;
  --riff-color-gray: #f7f9fa;
  --riff-color-light: #e0e0e0;
  
  --riff-font-main: 'Inter', 'Noto Sans JP', sans-serif;
  
  --riff-header-height-pc: 80px;
  --riff-header-height-sp: 60px;
  
  --riff-transition: .3s ease-in-out;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--riff-font-main);
  color: var(--riff-color-text);
  background-color: var(--riff-color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--riff-transition);
}
a:hover {
  opacity: 0.7;
}

ul, ol, dl, dt, dd, h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}

/* ==========================================================================
   Utilities (br PC/SP logic)
   ========================================================================== */
br.pc {
  display: block;
}
br.sp {
  display: none;
}

@media screen and (max-width: 768px) {
  br.pc {
    display: none;
  }
  br.sp {
    display: block;
  }
}

.RIFF-bg-gray {
  background-color: var(--riff-color-gray);
}

.RIFF-dummy-img {
  width: 100%;
  padding-top: 60%;
  background-color: var(--riff-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-weight: 600;
  border-radius: 8px;
  position: relative;
}
.RIFF-dummy-img::after {
  content: "DUMMY IMAGE";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.RIFF-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--riff-color-main);
  color: #fff;
  padding: 16px 40px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all var(--riff-transition);
}
.RIFF-btn:hover {
  background-color: var(--riff-color-accent);
  color: #fff;
}
.RIFF-btn--header {
  padding: 10px 24px;
  font-size: 14px;
}
.RIFF-btn--outline {
  background-color: transparent;
  color: var(--riff-color-main);
  border: 1px solid var(--riff-color-main);
}
.RIFF-btn--outline:hover {
  background-color: var(--riff-color-main);
  color: #fff;
}
.RIFF-btn--submit {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.RIFF-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--riff-header-height-pc);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.RIFF-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
  height: 100%;
}
.RIFF-header__logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.RIFF-header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.RIFF-header__nav-item {
  font-size: 14px;
  font-weight: 600;
}
.RIFF-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 101;
}

@media screen and (max-width: 768px) {
  .RIFF-header {
    height: var(--riff-header-height-sp);
  }
  .RIFF-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right var(--riff-transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .RIFF-header__nav.is-active {
    right: 0;
  }
  .RIFF-header__nav-list {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .RIFF-header__hamburger {
    display: block;
  }
  .RIFF-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--riff-color-main);
    position: absolute;
    left: 0;
    transition: all var(--riff-transition);
  }
  .RIFF-header__hamburger span:nth-child(1) { top: 0; }
  .RIFF-header__hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .RIFF-header__hamburger span:nth-child(3) { bottom: 0; }
  
  .RIFF-header__hamburger.is-active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  .RIFF-header__hamburger.is-active span:nth-child(2) { opacity: 0; }
  .RIFF-header__hamburger.is-active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
}

/* ==========================================================================
   Layout & Sections Base
   ========================================================================== */
.RIFF-main {
  padding-top: var(--riff-header-height-pc);
}
@media screen and (max-width: 768px) {
  .RIFF-main {
    padding-top: var(--riff-header-height-sp);
  }
}

.RIFF-section {
  padding: 120px 0; /* 大きめの余白 */
}
.RIFF-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4%;
}
.RIFF-section__title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 60px;
  position: relative;
}
.RIFF-section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--riff-color-main);
  margin: 16px auto 0;
}
.RIFF-section__title--white {
  color: #fff;
}
.RIFF-section__title--white::after {
  background-color: #fff;
}

@media screen and (max-width: 768px) {
  .RIFF-section {
    padding: 80px 0; /* SPは余白を詰める */
  }
  .RIFF-section__title {
    font-size: 28px;
    margin-bottom: 40px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.RIFF-hero {
  height: calc(100vh - var(--riff-header-height-pc));
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: var(--riff-color-gray);
  background-size: cover;
  background-position: center;
  position: relative;
}
/* 暗いオーバーレイ (背景がある場合に見やすくするため) */
.RIFF-hero[style] {
  color: #fff;
}
.RIFF-hero[style]::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}
.RIFF-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4%;
  width: 100%;
  position: relative;
  z-index: 1;
}
.RIFF-hero__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}
.RIFF-hero__subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .RIFF-hero {
    height: calc(100vh - var(--riff-header-height-sp));
  }
  .RIFF-hero__title {
    font-size: 32px;
  }
  .RIFF-hero__subtitle {
    font-size: 15px;
  }
}

/* ==========================================================================
   Service Section
   ========================================================================== */
.RIFF-service__grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.RIFF-service__item {
  display: flex;
  align-items: center;
  gap: 60px;
}
.RIFF-service__item:nth-child(even) {
  flex-direction: row-reverse;
}
.RIFF-service__img {
  flex: 1;
}
.RIFF-service__img img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.RIFF-service__content {
  flex: 1;
}
.RIFF-service__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--riff-color-main);
}
.RIFF-service__desc {
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  .RIFF-service__grid {
    gap: 50px;
  }
  .RIFF-service__item,
  .RIFF-service__item:nth-child(even) {
    flex-direction: column;
    gap: 20px;
  }
  .RIFF-service__title {
    font-size: 24px;
  }
}

/* ==========================================================================
   Works Section
   ========================================================================== */
.RIFF-works__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}
.RIFF-works__item {
  width: calc(33.333% - 27px); /* (100% - 40px*2) / 3 */
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.RIFF-works__item:hover .RIFF-works__img img {
  transform: scale(1.05);
}
.RIFF-works__img {
  overflow: hidden;
}
.RIFF-works__img img {
  width: 100%;
  transition: transform 0.5s ease;
}
.RIFF-works__content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.RIFF-works__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.5;
}
.RIFF-works__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.RIFF-works__tags li {
  font-size: 12px;
  padding: 4px 12px;
  background-color: var(--riff-color-gray);
  color: #666;
  border-radius: 20px;
}
.RIFF-works__btn-wrap {
  text-align: center;
}

.RIFF-works__btn-wrap {
  text-align: center;
}

/* Works Marquee Styles */
.RIFF-works__marquee-wrap {
  --marquee-gap: 30px;
  display: flex;
  gap: var(--marquee-gap);
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  position: relative;
  margin-bottom: 60px;
}
.RIFF-works__marquee-wrap::before,
.RIFF-works__marquee-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 2;
  pointer-events: none;
}
.RIFF-works__marquee-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, var(--riff-color-gray), rgba(247, 249, 250, 0));
}
.RIFF-works__marquee-wrap::after {
  bottom: 0;
  background: linear-gradient(to top, var(--riff-color-gray), rgba(247, 249, 250, 0));
}

.RIFF-works__marquee-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--marquee-gap);
  width: 50%;
}
.RIFF-works__marquee-col .RIFF-works__item {
  width: 100%;
}

.RIFF-works__marquee-group {
  display: flex;
  flex-direction: column;
  gap: var(--marquee-gap);
}

.RIFF-works__marquee-col--down .RIFF-works__marquee-group {
  animation: marquee-down 12s linear infinite;
}
.RIFF-works__marquee-col--up .RIFF-works__marquee-group {
  animation: marquee-up 12s linear infinite;
}
.RIFF-works__marquee-wrap:hover .RIFF-works__marquee-group {
  animation-play-state: paused;
}

@keyframes marquee-down {
  0% { transform: translateY(calc(-100% - var(--marquee-gap))); }
  100% { transform: translateY(0); }
}
@keyframes marquee-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-100% - var(--marquee-gap))); }
}

@media screen and (max-width: 900px) {
  .RIFF-works__item {
    width: calc(50% - 20px);
  }
}
@media screen and (max-width: 600px) {
  .RIFF-works__item {
    width: 100%;
  }
  .RIFF-works__grid {
    gap: 30px;
    margin-bottom: 40px;
  }
  .RIFF-works__marquee-wrap {
    height: 60vh;
    --marquee-gap: 15px;
  }
}

/* ==========================================================================
   Company Section
   ========================================================================== */
.RIFF-company__inner {
  max-width: 800px;
}
.RIFF-company__body {
  background: #fff;
  padding: 60px;
  border: 1px solid var(--riff-color-light);
  border-radius: 8px;
}
.RIFF-company__name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.RIFF-company__desc {
  margin-bottom: 40px;
  text-align: center;
}
.RIFF-company__info {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--riff-color-light);
}
.RIFF-company__info dt {
  width: 30%;
  padding: 20px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--riff-color-light);
}
.RIFF-company__info dd {
  width: 70%;
  padding: 20px 0;
  border-bottom: 1px solid var(--riff-color-light);
}

@media screen and (max-width: 768px) {
  .RIFF-company__body {
    padding: 30px 20px;
  }
  .RIFF-company__info dt,
  .RIFF-company__info dd {
    width: 100%;
    padding: 15px 0;
  }
  .RIFF-company__info dt {
    padding-bottom: 5px;
    border-bottom: none;
    color: #666;
    font-size: 14px;
  }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.RIFF-contact {
  background-color: var(--riff-color-main);
  color: #fff;
}
.RIFF-contact__desc {
  text-align: center;
  margin-bottom: 40px;
}
.RIFF-contact__form-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  color: var(--riff-color-text);
  padding: 60px;
  border-radius: 8px;
}
.RIFF-form__row {
  margin-bottom: 30px;
}
.RIFF-form__label {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 10px;
}
.RIFF-form__required {
  background: #e63946;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
}
.RIFF-form__input,
.RIFF-form__textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color var(--riff-transition);
}
.RIFF-form__input:focus,
.RIFF-form__textarea:focus {
  outline: none;
  border-color: var(--riff-color-accent);
}
.RIFF-form__submit-wrap {
  text-align: center;
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  .RIFF-contact__form-wrap {
    padding: 30px 20px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.RIFF-footer {
  background-color: #222;
  color: #fff;
  padding: 60px 0 20px;
}
.RIFF-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
}
.RIFF-footer__logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.RIFF-footer__address {
  color: #999;
  font-size: 14px;
}
.RIFF-footer__nav-list {
  display: flex;
  gap: 30px;
}
.RIFF-footer__nav-item a {
  font-size: 14px;
  font-weight: 600;
}
.RIFF-footer__bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
}
.RIFF-footer__copyright {
  color: #666;
  font-size: 12px;
}

@media screen and (max-width: 768px) {
  .RIFF-footer__inner {
    flex-direction: column;
    gap: 40px;
  }
  .RIFF-footer__nav-list {
    flex-wrap: wrap;
    gap: 15px 30px;
  }
}

/* ==========================================================================
   Animations (Scroll)
   ========================================================================== */
.js-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
