@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.element {
  animation: fadeUp 1.6s ease-out;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

/* ------------------------------
   ベース設定
------------------------------ */
:root {
    --max-width: 1200px;
    --font-main: "Noto Sans JP", sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-main);
    line-height: 1.7;
    background: white;
}

section {
	scroll-margin-top: 100px;
    padding: 50px 20px;
}

h1, h2, h3 {
    margin: 0 0 0px;
    font-weight: 600;
}

/* ------------------------------
   レイアウト
------------------------------ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ------------------------------
   ① ヘッダー
------------------------------ */
header {
    position: sticky;
    top: 0;
    border-bottom: 1px solid #eee;
    padding: 5px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

header nav a {
    text-decoration: none;
    font-weight: 500;
}


/* ------------------------------
   ② ヒーローセクション
------------------------------ */
#hero {
    text-align: center;
    padding: 10px 0px;
}

#hero h2 {
    font-size: 4.0rem;
    margin-bottom: 0px;
}


/* ------------------------------
   ③ 事業内容（カード）
------------------------------ */
#services .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

#services .card {
    background: white;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

#services .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ------------------------------
   ④ 当社の強み
------------------------------ */
#strengths .strength-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

#strengths .strength {
    padding: 25px;
    border-radius: 8px;
}

/* ------------------------------
   ⑤ 実績
------------------------------ */
#works .works-stats {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

#works .works-stats li {
    margin-bottom: 10px;
}

/* ------------------------------
   ⑥ 代表メッセージ
------------------------------ */
#message .message-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}


/* ------------------------------
   ⑦ 採用情報
------------------------------ */
#recruit {
    text-align: center;
}

#recruit .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

a {
  color: #ddbb55; /* アクセントカラー */
}
a:hover {
  color: #ffe680;
}


/* ------------------------------
   ⑧ 会社概要
------------------------------ */
#about {
    text-align: center;
}

#about dl{
  max-width:600px;
  margin:0 auto;
}
 
#about dt{
  margin:20px 0 10px;
  font-weight:bold;
  text-align:center;
}

#about dd{
  margin:0;
  text-align:center;
}

/* ------------------------------
   ⑨ フッター
------------------------------ */
footer {
    background: #222;
    color: #ccc;
    padding: 40px 20px;
    text-align: center;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer nav a {
    color: #ccc;
    text-decoration: none;
}
/* ==========================================
   ライトモード（OS設定に自動追従）
========================================== */
@media (prefers-color-scheme: light) {
	h1, h2, h3 {
    	color: #000000;
	}
    body {
        color: #000000;
        background: #F0F0F0;
    }

    header {
        background: #1F1F1F;
        border-bottom: 1px solid #333;
    }

    header nav a {
        color: #f0f0f0;
    }

    header nav .cta {
        color: #fff;
    }

    /* ヒーロー */
    #hero {
        background: #BCE1EF;
    }

    /*事業内容*/
    #services {
    /* カード */
       background: #f0f0f0;
       .card {
           background: #ffffff;
           border: 1px solid #444;
       }
       .card:hover {
           box-shadow: 0 4px 16px rgba(255,255,255,0.08);
       }
    }

    /* 強み */
    #strengths {
       background: #ffffff;
       .strength {
           background: #f0f0f0;
       }
    }

    /* 実績 */
    #works {
        background: #f0f0f0;
    }

    /* メッセージ */
    #message {
        background: #ffffff;
    }

    /* 採用 */
    #recruit {
        background: #e0e0ff;
    }
    #recruit a {
 		 color: #555500; /* アクセントカラー */
		}
    #recruit a:hover {
  		color: #0000ff;
		}


    /* 会社概要 */
    #about dt {
        color: #0f0f0f;
        background: #EEE8AA;
    }

    /* フッター */
    footer {
        background: #1F1F1F;
        color: #aaa;
    }
    
    /*インタビュー用 */
	.interview {
        background: #f0f0f0;
	}

	/* タイトル */
	.page-title {
  		color: #5555dd;
	}

	/* 質問 */
	.interview-card dt {
  		color: #000000;
	}

	/* 回答 */
	.interview-card dd {
  		color: #5555ff;
	}

	.profile h2{
  		color:#11BB11;
	}
}
/* ==========================================
   ダークモード（OS設定に自動追従）
========================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e5e5e5;
   }

    body {
        color: var(--text-color);
        background: #1F1F1F;
    }
	h1, h2, h3 {
    	color: #FFEE00;
	}

    header {
        background: #1F1F1F;
        border-bottom: 1px solid #333;
    }

    header nav a {
        color: var(--text-color);
    }

    header nav .cta {
        color: #fff;
    }

    /* ヒーロー */
    #hero {
        background: #8888ff;
    }


    /*事業内容*/
    #services {
    /* カード */
       background: #1a1a1a;
       .card {
           background: #2c2c2c;
           border: 1px solid #444;
       }
       .card:hover {
           box-shadow: 0 4px 16px rgba(255,255,255,0.08);
       }
    }

    /* 強み */
    #strengths {
       background: #222222;
       .strength {
           background: #2a2a2a;
       }
    }

    /* 実績 */
    #works {
        background: #2c2c2c;
    }

    /* メッセージ */
    #message {
        background: #222222;
    }

    /* 採用 */
    #recruit {
        background: #8888ff;
    }
    #recruit a {
 		 color: #ffff00; /* アクセントカラー */
		}
    #recruit a:hover {
  		color: #ddc660;
		}

    /* 会社概要 */
    #about{
        background: #2c2c2c;
     }
    #about dt {
           color: #000000;
           background: #CCCCCC;
       }

    /* フッター */
    footer {
        background: #1F1F1F;
        color: #aaa;
    }

    footer nav a {
        color: #aaa;
    }
    
    /*インタビュー用 */
	.interview {
        background: #2c2c2c;
	}

	/* タイトル */
	.page-title {
  		color: #EEDD55;
	}

	/* 見出し */
	.interview-card h2 {
  		color: #EEDD55;
	}

	/* 回答 */
	.interview-card dd {
  		color: #ccc;
	}

	.profile h2{
  		color:#EEDD55;
	}
}

/* ==========================================
   円部分
========================================== */
/* 外側6円を繋ぐ白い円 */
.circleCC {
   width:280px;
   height:280px;
   border-radius:50%;
   border:10px solid white;
   display:flex;
   align-items:center;
   justify-content:center;
   margin:0 auto;
  }

/* 円の基本形 */
.circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  font-weight: 700;
  line-height: 1.4;

  /* ほんのり浮かせる */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6);
}

/* グラデーション例（緑） */
.circle.green {
  background: radial-gradient(
    circle at top left,
    #8fffd0,
    #1fa86a
      );
    color: #EEDD55;
}

/* グラデーション例（青） */
.circle.blue {
  background: radial-gradient(
    circle at top left,
    #7bb6ff,
    #245bdb
  );
    color: #EEDD55;
}

/* グラデーション例（青緑） */
.circle.teal {
  background: radial-gradient(
    circle at top left,
    #6fe8e8,
    #1f9ea8
  );
    color: #EEDD55;
}

/* グラデーション例（紫） */
.circle.purple {
  background: radial-gradient(
    circle at top left,
    #c7a8ff,
    #6840c7
  );
    color: #EEDD55;
}

/* グラデーション例（橙） */
.circle.orange {
  background: radial-gradient(
    circle at top left,
    #ffdbaa,
    #d97a1d
  );
    color: #EEDD55;
}

/* グラデーション例（赤） */
.circle.red {
  background: radial-gradient(
    circle at top left,
    #ffaaaa,
    #c73636
  );
    color: #EEDD55;
}

/* グラデーション例（黄色） */
.circle.gray {
  background: radial-gradient(
    circle at top left,
    #efefef,
    #EEEE00
  );
    color: #f0f0f0;
}

/* 文字 */
.circle p {
  margin: 0;
  font-size: 20px;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6), -1px -1px 1px rgba(0, 0, 0, 0.6), 1px -1px 1px rgba(0, 0, 0, 0.6), -1px 1px 1px rgba(0, 0, 0, 0.6);
}

.hex-square {
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
}


/* 行共通 */
.row {
  display: grid;
  gap: 20px;
}

/* 上下：2個 */
.row-2 {
  grid-template-columns: repeat(2, 110px);
}

/* 中央：3個 */
.row-3 {
  grid-template-columns: repeat(3, 110px);
}
.hex-square {
  position: relative; 
}

.hex-wrapper {
  position: relative;
  margin: 40px;   
}

/* PC用（768px以上） */
@media (min-width: 768px) {
  .circle {
    width: 160px;
    height: 160px;
  }

  .row-2 {
    grid-template-columns: repeat(2, 160px);
  }

  .row-3 {
    grid-template-columns: repeat(3, 160px);
  }

  .circleCC {
    width: 400px;
    height: 400px;
  }

 .circle p {
  font-size: 24px;
 }
}

/* ↓インタビュー用 */
/* 全体 */
.interview {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* タイトル */
.page-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
}

/* 導入文 */
.intro {
  text-align: center;
  margin-bottom: 60px;
}

/* カード */
.interview-card {
  border-top: 1px solid #444;
  padding: 40px 0;
}

/* 見出し */
.interview-card h2 {
  font-size: 22px;
  margin-bottom: 20px;
  white-space: nowrap;
}

/* 定義リスト */
.interview-card dl {
  margin: 0;
}

/* 質問 */
.interview-card dt {
  font-weight: bold;
  margin-top: 15px;
}

/* 回答 */
.interview-card dd {
  margin: 5px 0 0 0;
  line-height: 1.6;
}

.card-header {
  display: flex;
  align-items:flex-start;
  gap:20px;
}

.profile {
  display: flex;
  flex-direction: column;
} 

.profile h2{
  margin-bottom: 10px;
}

.profile-info {
  line-height: 1.8;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(...);
}

/* 少し浮かせる */
.interview-card {
  padding: 30px;
  border: 1px solid #444;
  margin-bottom: 30px;
}

@media screen and (max-width: 768px){
  .card-header{
      flex-direction: column;
      align-items: center;
      }
  .profile{
      width: 100%;
      }
  .profile h2{
      text-align: center;
      }
  .profile-data{
      margin-top:15px;
      padding:15px;
      background:#111;
      border:1px solid #333;
      border-radius:8px;
      }
}
/* ==========================================
画面全体を覆うワイプレイヤー
========================================== */
/* 画面全体を覆うレイヤー */
.wipe-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1s ease forwards;
  animation-delay: 3s; /* ワイプ後にフェードアウト */
}

/* キャッチコピー（ワイプ表示） */
.wipe-text {
  font-size: 10.0rem;
  color: #fff;
  white-space: nowrap;
  display: inline-block;

  /* 最初は右側を100%隠す（＝全く見えない） */
  clip-path: inset(0 100% 0 0);

  animation: wipeMask 2s ease forwards;
}
/* スマホ用 */
@media (max-width: 768px) {
  .wipe-text {
    font-size: 5.0rem;
  }
}

/* マスクが横に広がる＝ワイプ */
@keyframes wipeMask {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* レイヤーを消す */
@keyframes fadeOut {
  to {
    opacity: 0;
    pointer-events: none;
  }
}