/*
Theme Name: KAZU Theme
Description: KAZUのデモテーマ
Author: Togo Asai
Version: 1.0.0
*/
/* 
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com 
Twitter: @rich_clark
*/
/* リセットCSS */
@charset "UTF-8";

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
recruit,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

body {
  line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
recruit,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

li {
  list-style: none;
}

nav ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none;
  color: inherit;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input,
select {
  vertical-align: middle;
}

button{
  border: none;
  background: transparent;
  cursor: pointer;
}

/* ========== 基本設定 & CSS変数 ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  background: #fff;
  position: relative;
}

/* ========== 共通部 =========== */
/* Figma Styles of your File */
:root {
  /* Colors */
  --neutral-99: #fffbff;
  --neutral-98: #fdf8f9;
  --neutral-95: #f4f0f0;
  --neutral-90: #e6e1e2;
  --neutral-80: #c9c5c6;
  --neutral-70: #aeaaab;
  --neutral-60: #939091;
  --neutral-50: #797677;
  --neutral-40: #605e5f;
  --neutral-35: #545253;
  --neutral-30: #484647;
  --neutral-25: #3c3b3c;
  --neutral-20: #313031;
  --neutral-15: #262526;
  --neutral-10: #1c1b1c;
  --neutral-5: #111112;
  --primary-color: #1e90ff;
  --secondary-color: #002f5d;
  --text-color: #1c1b1c;
  --light-text: #797677;
}

main{
  width: 100%;
}

.section__title{
  font-size: clamp(1.5rem, 2.75vw , 3rem);
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.section__subtitle{
  font-size: clamp(0.75rem, 1.375vw , 1.5rem);
  color: var(--light-text);
}

.section__header {
  text-align: center;
  padding-bottom: 1rem;
}

.page__header {
  padding: 1rem 0 2rem 0;
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
}

.page__header-wrapper {
  border-style: solid;
  border-color: var(--material-theme-ref-neutral-variant-neutral-variant40, #605e5f);
  border-width: 0 0 2px 0;
  padding: 0 1.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: row;
  gap: 0.625rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page__title {
  color: var(--material-theme-ref-neutral-variant-neutral-variant40, #605e5f);
  text-align: center;
  font-size: 1.5rem;
  line-height: 100%;
  letter-spacing: 0.05em;
  font-weight: 700;
}


/* ========== コンテナ ========== */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0 44rem 0;
  width: 100%;
}

/* ========== ヘッダー ========== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.202);
  position: fixed;
  top: 0;
  z-index: 1000;
}

.header {
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.header__logo {
  width: auto;
  height: 100%;
}

.header__logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__navigation {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.header__nav-list {
  display: flex;
  gap: 0.51rem;
  align-items: center;
  flex-wrap: nowrap;
}

.header__nav-item {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--light-text);
  border-radius: 1rem;
  padding: 4px 8px;
}

.header__nav-item:hover {
  color: var(--primary-color);
  transform: scale(1.05);
  text-shadow: 0 0 0.3rem rgba(30, 144, 255, 0.4);
  transition: transform 0.1s;
}

.header__buttons {
  display: flex;
  gap: 1rem;
}

.header__menu-btn {
  display: none;
}

.header__contact-btn {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(30, 144, 255, 0.3);
  border: none;
}

.header__contact-btn:hover {
  background-color: #0070d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 144, 255, 0.4);
}

/* ========== フッター ========== */
footer {
  width: 100%;
  padding: 2rem 0;
  background: var(--secondary-color);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.202);
  position: absolute;
  bottom: 0;
  z-index: 1000;
}

.footer__content{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  gap: 1rem;
}

.footer__bottom-section{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
}

.footer__company-name{
  font-size: 1rem;
  font-weight: 600;
  color: white;
}
.footer__menu{
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: nowrap;
}

.footer__nav-list{
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: nowrap;
}

.footer__nav-item{
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  border-radius: 1rem;
  padding: 4px 8px;
  text-decoration: none;
}


.partners {
  display: flex;
  gap: 1.5rem; /* セクション間の余白 */
  flex-wrap: wrap; /* 画面が狭い場合に折り返し可能にする場合 */
  padding: 0 1rem 1rem 1rem;
}

.partners__supplier,
.partners__recipient {
  flex: 1; /* 均等幅にしたい場合 */
}

.partners__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.partners__item {
  margin-bottom: 8px; /* 各リスト項目の下に余白をつける場合 */
  color: white;
  line-height: 1.3;
  font-size: 0.875rem;
}

.partners__title{
  color: white;
  margin-bottom: 0.5rem;
}


/* ========== トップ ========== */
.top {
  width: 100%;
  height: 42vw;
  padding: 2vw 3vw;
}

.top__inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.top__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 2rem;
}

.top__text-container {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 2.4em 3.2em 1em 2.4em;
  border-top-right-radius: 1rem;
  background: white;
  display: flex;
  z-index: 99;
}

.top__ellipse {
  background: var(--primary-color);
  border-radius: 50%;
  width: 2em;
  height: 2em;
}

.top__text {
  color: var(--text-color);
  font-size: clamp(1.5em, 4vw , 4em);
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ========== ABOUT ========== */
.about__section {
  width: 100%;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about__content {
  width: 90%;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}


.about__body {
  width: 100%;
  height: 32.5rem;
  margin: 0 auto;
  gap: 2.5rem;
  display: flex;
  flex-direction: row;
  justify-content: row;
  gap: 2.5rem;
}

/* 共通カード設定 */
.about__card{
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

/* 代表挨拶カード */
.about__card--ceo {
  width: 50%;
  height: 100%;
}

.about__cards {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
}

/* 経営理念カード */
.about__card--philosophy,
.about__card--overview {
  width: 100%;
  height: 50%;
  flex: 1 1 20rem;
  max-width: 32rem;
}

.card__image,
.card__image--ceo,
.about__card--philosophy .card__image,
.about__card--overview .card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.6);
}

.card__image--ceo {
  object-position: top;
}

.card__text {
  position: absolute;
  z-index: 10;
  color: white;
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
  text-align: left;
  padding: 0.5rem;
  text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* 代表挨拶カード内テキスト位置 */
.about__card--ceo .card__text {
  left: 0;
  bottom: 0;
  padding: 1rem;
  align-items: left;
}

.about__card--ceo .card__title{
  font-size: 2rem;
}

.card__subtitle {
  color: var(--neutral-90);
  font-size: 1rem;
  font-weight: 500;
}

.card__title {
  color: white;
  font-size: 1.75rem; /* 50px */
  font-weight: 700;
  left: 0;
  top: 0;
}

/* 経営理念・会社概要カードのテキスト位置 */
.about__card--philosophy .card__text,
.about__card--overview .card__text {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  width: 100%;
}

/* ========== コンサルティング ========== */
.consulting {
  width: 100%;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.consulting__row {
  width: 100%;
  height: 20vw;
  display: flex;
  /* gap: 1rem; */
  flex-wrap: wrap;
}

.consulting__card {
  position: relative;
  overflow: hidden;
  height: 100%;
  flex: 1 1;
  z-index: 1;
}

.consulting__card .card__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card__blue-filter {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 144, 255, 0.2);
  transition: opacity 0.3s ease;
}

.consulting__card:hover .card__image {
  transform: scale(1.1);
}

.consulting__card:hover .card__blue-filter {
  opacity: 0;
}

.consulting__card .card__text {
  position: absolute;
  z-index: 20;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  line-height: 1.3;
  top: 50%;
  transform: translateY(-50%);
}

/* ========== TESTIMONIALS（社員の声） ========== */
.testimonials {
  width: 100%;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('./assets/grid_background.svg');
  background-color: rgba(255, 255, 255, 0.8);
  background-blend-mode: lighten;
}

.testimonials__list {
  width: 100%;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
}

.testimonial {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__content {
  display: flex;
  flex-direction: row;
  justify-content: start;
}

.testimonial__content--even{
  flex-direction: row-reverse;
  justify-content: end;
}

.testimonial__image {
  /* border-radius: 50%; */
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  object-position: top;
}

.testimonial__card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  margin-left: 0;
}

.testimonial__card--even {
  margin-left: 0;
  margin-right: 0;
}

.testimonial__card-decoration{
  position:absolute;
  left: 0;
  top: 0;
  width: 0.4em;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 1rem 0 0 1rem;
}

.testimonial__text-container {
  padding: 1rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial__text {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1e1e1e;
  margin: 0;
}

.testimonial__author {
  width: 100%;
  font-weight: 600;
  text-align: right;
  font-size: 0.875rem;
  color: var(--dark-gray);
  margin: 0;
}

.testimonial__label {
  border-top: 0.2rem solid var(--primary-color);
  padding-top: 0.5rem;
  text-align: left;
  max-width: 50%;
}

.testimonial__title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

/* ========== recruit ========== */
.recruit {
  width: 100%;
  padding: 2rem 0 4rem 0;
  overflow: hidden;
  position: relative;

}

.recruit__content {
  width: 90%;
  max-width: 64rem;
  margin: 0 auto;
  height: 25vw;
  position: relative;
}

.recruit__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 1rem;
  filter: brightness(0.6);
}

.recruit__text {
  display: flex;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.5);
}

.recruit__text-container {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;

  padding: 0 2rem;
}

.recruit__title {
  font-size: clamp(2rem, 3.5vw , 3.5rem);
  color: white;
  margin: 0;
  display: flex;
  align-items: center;
}

.recruit__arrow-icon {
  width: 3rem; /* 40px */
  height: 3rem;
}

.recruit__subtitle {
  font-size: clamp(1rem, 1.5vw , 1.75rem);
  color: var(--neutral-90);
  margin: 0;
}

.recruit__icon {
  width: 3.25rem; /* 52px */
  height: 3.25rem;
}

/* ========== レスポンシブ調整 ========== */
@media screen and (max-width: 768px) {

  .page{
    padding-top: 48px;
    padding-bottom: 74.5rem;
  }

  .header__content{
    height: 5rem;
    padding: 0.5rem 1rem;
  }

  .header__nav-list {
    display: none;
  }

  .header__contact{
    font-size: 1rem;
  }

  .header__menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    height: 2.5rem;
    aspect-ratio: 1/1;
    padding: 0;
  }

  .header__menu-image{
    width: 100%;
    height: 100%;
    color: var(--dark-gray);
  }

  .section__title{
    font-weight: bold;
    color: var(--secondary-color);
    font-size: clamp(2.25rem, 6vw , 4rem);
  }

  .section__subtitle{
    font-size: clamp(1rem, 2vw , 1.5rem);
  }

  .top{
    height: 90vh;
  }

  .top__text-container {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 2rem 0;
    background-color: transparent;
  }

  .top__text {
    width: 100%;
    font-size: clamp(1.375em, 5vw , 4em);
    color: white;
    padding: 0;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.76);
    letter-spacing: 0.25rem;
  }

  .about__body {
    flex-direction: column;
    height: auto;
    gap: 1rem;
  }

  .about__content{
    padding: 0;

  }

  .about__cards{
    flex-direction: row;
    gap: 1rem;
  }

  .about__card--ceo,
  .about__cards{
    width: 100%;
    height: 50vw;
  }

  .about__card--ceo .card__image {
    object-position: top;
  }

  .about__card--philosophy,
  .about__card--overview {
    height: 100%;
  }
  .consulting__row {
    flex-direction: column;
    height: auto;
  }
  .consulting__card .card__image{
    height: 30vh;
  }
  .testimonial__content,
  .testimonial__content--even {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .testimonial__card,
  .testimonial__card--even {
    width: auto;
    margin: 0;
  }
  .recruit__content {
    width: 95%;
    height: 35vw;
  }
  .recruit__text {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  footer{
    height: auto;
  }

  .footer__content{
    height: 100%;
    padding: 1rem 0;
    max-width: 520px;
    margin: 0 auto;
  }

.footer__bottom-section{
    flex-direction: column;
    align-items: start;
  }
  
  .footer__nav-list {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .footer__nav-item {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    font-weight: 500;
  }

  .partners{
    flex-direction: column;
  }

  .header__nav-list.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 3rem;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 1rem;
    z-index: 1001;
  }

  .header__nav-list.open .header__nav-item {
    font-size: 1rem;
  }
}

/* ========== Carousel Styles ========== */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel__item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.carousel__item:first-child {
  opacity: 1;
  z-index: 1;
}

.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}
