/* 基本設定 */
:root {
  --primary-color: #3a5199;
  --primary-dark: #1e3a8a;
  --secondary-color: #f8f9fa;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #4a4a4a;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  color: var(--text-color);
  background-color: #fcfcfc;
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-fixed {
  overflow: hidden;
}

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

/* ヘッダー部分 */



.header {
  background-color: var(--dark-bg);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.header__logo {
  z-index: 1000;
  display: inline-block;
  padding: 14px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--light-text);
  letter-spacing: 0.05em;
  font-family: "Oswald", sans-serif;
}

.header__menu-button {
  border: none;
  position: relative;
  width: 30px;
  height: 30px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.header__menu-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--light-text);
  transition: var(--transition);
}

.header__menu-button.is-checked .header__menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__menu-button.is-checked .header__menu-line:nth-child(2) {
  opacity: 0;
}

.header__menu-button.is-checked .header__menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* .header__contents {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--dark-bg);
  height: calc(100vh - 60px);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
} */

.header__contents {
  position: fixed; /* absoluteからfixedに変更 */
  top: 60px; /* ヘッダーの高さに合わせて調整 */
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: var(--dark-bg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998; /* z-indexを追加 */
  overflow-y: auto;
}

.header__contents.is-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.header__nav {
  padding: 100px 24px;
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.header__nav-item {
  transition: var(--transition);
}

.header__nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--light-text);
  padding: 10px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.header__nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.header__nav-icon svg path {
  fill: var(--light-text);
  transition: var(--transition);
}

.header__nav-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.header__nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header__nav-item--contact .header__nav-link {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
}

.header__nav-item--social .header__nav-link {
  border: 1px solid var(--light-text);
  border-radius: var(--border-radius);
}

/* ヒーローセクション - ファーストビュー最適化 */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #1e3a8a;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero__bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 80px; /* ヘッダーの高さ分 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  z-index: 1;
}

.hero__content {
  text-align: center;
  color: #fff;
  max-width: 100%;
  padding: 0;
  margin-top: 60px;
  margin-bottom: 40px;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title-main {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__title-sub {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero__image {
  position: relative;
  width: 100%;
  top: 30px;
  max-width: 280px;
  margin: 0 auto;
  /* margin-bottom: auto; */
}

.hero__image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.hero__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
  padding-bottom: 30px;
}

.hero__button {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.hero__button:hover {
  transform: translateY(-3px);
  background-color: #ff5252;
  box-shadow: 0 8px 16px rgba(255, 107, 107, 0.4);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.hero__scroll::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.hero__scroll::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  /* right: 5px; */
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  animation: bounce 2s infinite;
}

.scroll-indicator__text {
  font-size: 10px;

  opacity: 0.7;
}

.scroll-indicator__icon {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  position: relative;
  margin: 0 auto;
}

.scroll-indicator__icon::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(12px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(24px);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* セクション共通スタイル */
.section {
  padding: 80px 0;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__title-en {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.1em;
  font-family: "Oswald", sans-serif;
  line-height: 1.2;
}

.section__title-ja {
  font-size: 16px;
  margin-top: 8px;
  color: var(--text-color);
}

.section__description {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.section__lead-text {
  margin-top: 24px;
}

/* サービスセクション */
.service {
  background-color: var(--secondary-color);
}

.service__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.service__card {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service__card:hover {
  transform: translateY(-10px);
}

.service__card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__card-icon img {
  width: 100%;
  height: auto;
}

.service__card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.service__card-text {
  font-size: 15px;
  line-height: 1.6;
}

/* 実績セクション */
.works__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.works__card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.works__card:hover {
  transform: translateY(-10px);
}

.works__card-image {
  width: 100%;
  height: 0;
  padding-bottom: 66.67%;
  position: relative;
  overflow: hidden;
}

.works__card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.works__card:hover .works__card-image img {
  transform: scale(1.05);
}

.works__card-content {
  padding: 24px;
}

.works__card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.works__card-link {
  display: inline-block;
  padding: 8px 0;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.works__card-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.works__card-link:hover::after {
  width: 100%;
}

/* アバウトセクション */
.about {
  background-color: var(--secondary-color);
}

.about__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about__image {
  flex: 1;
}

.about__image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about__content {
  flex: 1;
}

.about__description {
  font-size: 16px;
  line-height: 1.8;
}

.about__description p + p {
  margin-top: 16px;
}

.flow {
  background-color: #fafafa;
}
.flow__list {
  margin-top: 64px;
}
.flow__item {
  position: relative;
  border: 1px solid #808080;
  padding: 46px 16px 24px;
}
.flow__item + .flow__item {
  margin-top: 46px;
}
.flow__item-num {
  border-radius: 50%;
  position: absolute;
  top: -24px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  font-size: 24px;
  background-color: #3a5199;
  color: #fff;
  width: 48px;
  height: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.flow__item-img {
  margin-bottom: 24px;
  text-align: center;
}
.flow__item-name {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}
.flow__item-text {
  font-size: 14px;
  line-height: 1.6;
}

/* メッセージセクション */
.message {
  background-color: var(--secondary-color);
}

.message__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.message__image {
  flex: 1;
}

.message__image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.message__content {
  flex: 1;
}

.message__text {
  font-size: 16px;
  line-height: 1.8;
}

/* CTA（お問い合わせ）セクション */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--light-text);
  padding: 80px 0;
}

.cta-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-section__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.cta-box {
  text-align: center;
  padding: 40px;
  border-radius: var(--border-radius);
}

.cta-box--contact {
  background-color: rgba(255, 255, 255, 0.1);
}

.cta-box__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.cta-box__title-en {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: "Oswald", sans-serif;
  line-height: 1.2;
}

.cta-box__title-ja {
  font-size: 16px;
  margin-top: 8px;
}

.cta-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background-color: var(--light-text);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  width: 100%;
  max-width: 280px;
}

.cta-box__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-box__button-icon {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.cta-box__button-icon svg path {
  fill: var(--primary-color);
}

.cta-box__button-text {
  font-size: 16px;
}

/* フッター */
.footer {
  background-color: #2c2c2c;
  color: var(--light-text);
  text-align: center;
  padding: 10px 0;
}

.footer__copy {
  font-size: 14px;
  opacity: 0.8;
}

.highlight {
  font-weight: bold;
  color: #333;
  background-color: #fff7c2; /* うすい黄色背景でやさしく強調 */
  padding: 2px 4px;
  border-radius: 4px;
}
/* メディアクエリ - タブレット */
@media screen and (min-width: 768px) {
  .header__logo {
    font-size: 28px;
  }

  .hero {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .hero__container {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 40px;
    max-width: 1000px;
  }

  .hero__content {
    flex: 1;
    text-align: left;
    /* margin-top: 0; */
    margin-top: 140px;
    margin-bottom: 0;
    max-width: 50%;
  }

  .hero__image {
    flex: 1;
    max-width: 45%;
    margin: 0;
    top: 55px;
  }

  .hero__title-main {
    font-size: 64px;
  }

  .hero__title-sub {
    font-size: 18px;
  }

  .hero__cta {
    flex-direction: row;
    justify-content: flex-start;
  }

  .hero__button {
    max-width: 220px;
  }

  .service__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .works__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .about__container {
    flex-direction: row;
    align-items: center;
  }

  .about__image {
    flex: 0 0 45%;
  }

  .message__container {
    flex-direction: row;
    align-items: center;
  }

  .message__image {
    flex: 0 0 45%;
  }

  .cta-section__container {
    grid-template-columns: 1fr 1fr;
  }

  .flow__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .flow__item + .flow__item {
    margin-top: 0;
  }

  .scroll-indicator {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
  }

  .scroll-indicator__icon {
    width: 24px;
    height: 38px;
  }

  .scroll-indicator__text {
    font-size: 12px;
    margin-bottom: 8px;
  }
}

@media screen and (min-width: 1024px) {
  .header {
    display: block;
    width: 100%;
    height: auto;
  }

  .header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
  }

  .header__menu-button {
    display: none; /* PCではハンバーガーメニュー非表示 */
  }

  .header__contents {
    position: static;
    height: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: auto;
    background-color: transparent;
    transition: none;
  }

  .header__nav {
    padding: 0;
  }

  .header__nav-list {
    flex-direction: row;
    gap: 20px;
    align-items: center;
  }
}
