@charset "UTF-8";

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
  letter-spacing: 0.05em;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================================
   Variables
========================================= */
:root {
  --color-primary: #1e4585; /* ボタン等の青色 */
  --color-text-main: #222;
  --color-text-light: #888;
  --color-border: #eee;
  --color-bg-hero: #fafafa;
}

/* =========================================
   Layout
========================================= */
.l-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   Components
========================================= */
/* Button */
.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.btn:hover {
  opacity: 0.8;
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Section Common */
.section {
  padding: 60px 0;
}

.section__header {
  margin-bottom: 30px;
}

.section__en-title {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.section__ja-title {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .section {
    padding: 100px 0;
  }
  .section__header {
    margin-bottom: 50px;
  }
  .section__ja-title {
    font-size: 1.75rem;
  }
}

/* =========================================
   Blocks
========================================= */
/* Header */
.header {
  padding: 15px 0;
  position: relative;
  z-index: 10;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================================
   Header Logo（デバイスごとのサイズ調整）
========================================= */
.header__logo img {
  /* モバイル（スマホ）でのサイズ */
  height: 24px; 
  width: auto; /* アスペクト比（縦横比）を維持 */
}

/* タブレットサイズ（画面幅768px以上） */
@media (min-width: 768px) {
  .header__logo img {
    height: 32px; 
  }
}

/* デスクトップサイズ（画面幅1024px以上） */
@media (min-width: 1024px) {
  .header__logo img {
    height: 40px; 
  }
}
/* =========================================
   Header Button（デバイスごとのサイズ調整）
========================================= */
/* モバイル（スマホ）でのサイズ：ロゴ 24px にフィット */
.header__btn {
  padding: 6px 12px;
  font-size: 0.75rem; /* 約12px */
  /* btn--small のスタイルを上書きします */
}

/* タブレットサイズ（画面幅768px以上）：ロゴ 32px にフィット */
@media (min-width: 768px) {
  .header__btn {
    padding: 8px 16px;
    font-size: 0.875rem; /* 約14px */
  }
}

/* デスクトップサイズ（画面幅1024px以上）：ロゴ 40px にフィット */
@media (min-width: 1024px) {
  .header__btn {
    padding: 10px 24px;
    font-size: 1rem; /* 約16px */
  }
}

/* Hero */
.hero {
  background-image: url('common/images/cover.jpg');
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  margin-bottom: 60px;
}

.hero__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.hero__subtitle {
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero {
    padding: 120px 0;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* Philosophy */
.concept__text {
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 2.4;
}

@media (min-width: 768px) {
  .concept__text {
    font-size: 1rem;
  }
}

/* Business (Service List) */
.paragraph__text {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 40px;
}

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

.service-item {
  display: flex;
  flex-direction: column-reverse; /* モバイルでは画像が上、テキストが下（スクリーンショットに基づく） */
  gap: 15px;
}

.service-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-item__text {
  font-size: 0.875rem;
  line-height: 1.8;
}

.service-item__image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .service-list {
    gap: 60px;
  }
  .service-item {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
  .service-item__content {
    flex: 1;
  }
  .service-item__image {
    width: 320px;
    flex-shrink: 0;
  }
}

/* Price */
.price__text {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.price__btn {
  padding: 12px 40px;
  font-size: 1rem;
}

/* Profile */
.profile__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile__image img {
  width: 100%;
  max-width: 300px;
}

.profile__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.profile__role {
  font-size: 0.75rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.profile__history p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .profile__card {
    flex-direction: row;
    gap: 40px;
  }
  .profile__image {
    width: 280px;
    flex-shrink: 0;
  }
  .profile__info {
    flex: 1;
  }
  .profile__role {
    font-size: 0.875rem;
  }
}

/* About */
.about-list {
  border-top: 1px solid var(--color-border);
}

.about-list__row {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.about-list__term {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 5px;
  width: 100%;
}

.about-list__desc {
  font-size: 0.875rem;
  width: 100%;
}

@media (min-width: 768px) {
  .about-list__row {
    flex-direction: row;
    padding: 20px 0;
  }
  .about-list__term {
    width: 150px;
    margin-bottom: 0;
  }
  .about-list__desc {
    flex: 1;
  }
}

/* Footer */
.footer {
  padding: 30px 20px;
  border-top: 1px solid var(--color-border);
}

.footer__copyright {
  font-size: 0.625rem;
  color: var(--color-text-light);
}

@media (min-width: 768px) {
  .footer {
    padding: 40px 20px;
  }
}

/* =========================================
   Utility
========================================= */
/* SPでのみ表示（PC・タブレットでは非表示） */
@media (min-width: 768px) {
  .u-sp-only {
    display: none;
  }
}


/* =========================================
   Typing アニメーション（h1・サブタイトル用）
========================================= */
/* h1の各行をラップする用 */
.typing-line {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 3px solid transparent; /* デフォルトは透明（カーソル非表示） */
  vertical-align: bottom;
  line-height: 1.2; /* カーソルの高さをテキストに合わせる */
}

/* 1行目: 情報を、 (4文字) */
.typing-line--1 {
  /* 0.8秒かけて4ステップで表示 */
  animation: typing-1 0.8s steps(4) forwards;
}

/* 2行目: わかりやすく。 (7文字) */
.typing-line--2 {
  /* 1行目が終わるタイミング(0.8s後)でスタート */
  animation: typing-2 1.4s steps(7) 0.8s forwards;
}

/* サブタイトル: h1の後にフェードイン */
.hero__subtitle {
  /* 既存のスタイル */
  font-size: 1rem;
  font-weight: 500;

  /* アニメーションの追加 */
  opacity: 0; /* 最初は透明 */
  /* 1行目(0.8s) + 2行目(1.4s) = 2.2s の後にふわっと表示 */
  animation: fade-in 0.8s ease 2.2s forwards;
}

/* PC用のフォントサイズ調整（既存のまま） */
@media (min-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__subtitle {
    font-size: 1.125rem;
  }
}

/* === アニメーションのキーフレーム === */

@keyframes typing-1 {
  /* 入力中はカーソル（右ボーダー）を表示し、100%に達した瞬間に透明にして消す */
  0%   { width: 0; border-right-color: var(--color-primary); }
  99%  { width: 4em; border-right-color: var(--color-primary); }
  100% { width: 4em; border-right-color: transparent; } 
}

@keyframes typing-2 {
  0%   { width: 0; border-right-color: var(--color-primary); }
  99%  { width: 7em; border-right-color: var(--color-primary); }
  100% { width: 7em; border-right-color: transparent; }
}

@keyframes fade-in {
  /* 下から少し浮き上がるようにフェードイン */
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}