/* 基本設定 */
html, body {
  font-family: "Noto Sans JP", "Noto Serif", sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-style: normal;
    
  margin: 0;
  padding: 0;
  overflow: hidden;   /* ← スクロールバーを出さない */
  height: 100%;
}

html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* ビューポートとズーム対象の親要素 */
.viewport {
  /* ここでビューポートのサイズを定義し、overflow: hidden; を設定 */
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  cursor: grab;
}


/* 共通設定 */
h1, h2, h3 {
  font-family: "Noto Serif", serif;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin: 1em 0 0.5em; /* ベースの余白 */
  font-weight: 600;    /* ベースの太さ */
}

/* 個別調整 */
h1 {
  font-size: 40px;
  margin: 0.8em 0;      /* 上下の余白を微調整 */
}

h2 {
  font-size: 32px;
  /* margin はベースをそのまま利用 */
}

h3 {
  font-size: 28px;
  font-weight: 500;     /* h3だけ少し軽く */
  margin: 0.8em 0 0.4em;
}


p {
  font-size: 24px;       /* 通常本文 */
  margin: 1em 0;         /* 上下の余白 */
  padding: 0;            /* 内側はリセット */
  line-height: 1.6;      /* 読みやすさ確保 */
  letter-spacing: 0.03em;/* 少しだけ広げる */
  color: inherit;        /* bodyの色を継承 */
}

p.lead {
  font-size: 32px;       /* キャッチコピー用 */
  font-weight: 400;      /* 少しだけ太めで存在感アップ */
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.2;      /* 文字サイズに合わせてやや詰める */
}

p.trivia {
  font-size: 12px;       /* キャッチコピー用 */
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.1;      /* 文字サイズに合わせてやや詰める */
}
p.trivia10 {
  font-size: 10px;       /* キャッチコピー用 */
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.1;      /* 文字サイズに合わせてやや詰める */
}
p.trivia16 {
  font-size: 16px;       /* キャッチコピー用 */
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.1;      /* 文字サイズに合わせてやや詰める */
}
p.trivia18 {
  font-size: 18px;       /* キャッチコピー用 */
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.1;      /* 文字サイズに合わせてやや詰める */
}
p.trivia22 {
  font-size: 22px;       /* キャッチコピー用 */
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.1;      /* 文字サイズに合わせてやや詰める */
}

p.trivia-main {
  font-size: 12px;       /* キャッチコピー用 */
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.1;      /* 文字サイズに合わせてやや詰める */
  color: #fff;
}


/* 普通の本文リンク */
a {
  position: relative;
  color: #004AAD;
  text-decoration: none;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #004AAD;
  transform: scaleX(0); /* 初期はゼロ */
  transform-origin: left; /* 左から伸びる */
  transition: transform 0.25s ease;
}

a:hover::after {
  transform: scaleX(1); /* ホバー時に100%まで伸びる */
}

/* 特定のリンクだけ反転スタイル */
a.highlight-link {
  font-family: "Shippori Mincho", serif;
  color: #004AAD;
  background-color: transparent;
  text-decoration: none;
  padding: 0.1em 0.3em;
  transition: all 0.2s ease;
}

a.highlight-link:hover {
  color: #fff;
  background-color: #004AAD;
  text-decoration: none;
}
a.img-link {
  display: inline-block;
  overflow: hidden;           /* はみ出しを隠す */
  /*border-radius: 8px;*/         /* 角丸（お好み） */
}
a.img-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}
a.img-link:hover img {
  transform: scale(1.1);      /* ズーム */
  filter: brightness(80%);    /* 明るさ80%でちょっと暗く */
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}


/*　セクション　タイトル　h2と組み合わせる　*/
.section-title {
  margin: 0.8em 0;
  line-height: 1.0; /* 行間を狭める */
  font-weight: 400;
}

.section-title a {
  font-family: "Shippori Mincho", serif;       
  color: #004AAD;             /* テーマカラー */
  background-color: transparent;     /* 普段は白背景 */
  text-decoration: none;
  padding: 0.1em 0.3em;       /* 文字の周りに余白 */
  display: inline-block;      /* 2行まとめてリンク */
  transition: all 0.2s ease;
}

.section-title a:hover {
  color: #fff;                /* ホバー時は文字色を白に */
  background-color: #004AAD;  /* 背景色をテーマカラーに反転 */
}

.section-title .ja {
  display: block;
  font-size: 96px;
}

.section-title .en {
  display: block;
  padding: 0 0 0 20px;
  font-size: 32px;
  letter-spacing: 0.05em;
}

/* グリッドコンテナとセクション　*/
#grid-container {
    display: grid;
    /* 24個の列を定義し、それぞれの幅を150pxに設定 */
    grid-template-columns: repeat(24, 150px);
    /* 2つの行を定義し、それぞれの高さを1200pxに設定 */
    grid-template-rows: repeat(2, 1200px);
    /* 要素間の余白 */
    gap: 0;

    /* コンテナのサイズを固定 */
    width: 3600px;
    height: 2500px;  /*もとは2400px */
      /* 下部に空白を追加 */
    padding-bottom: 100px; /* モバイルデバイス対策　下部分に空白を追加 */

    /* JavaScriptで操作するための設定 */
    position: absolute; /* 親要素の.viewportを基準に配置 */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.0);
    transform-origin: center center;
    transition: transform 0.3s ease;
  
    /* (他のプロパティはそのまま) */
    user-select: none;
    /* マウスカーソルの形をドラッグ中に変える */
    cursor: grab;   
    /* ドラッグ中はgrabbingにする */
    &:active { cursor: grabbing; }
}

.section {
    /* 見た目を分かりやすくするためのスタイル */
    /*border: 2px solid #333;*/
    background-color: #fff;
    padding: 20px;
    text-align: left; /* 左寄せ */
}

/* 1行目のセクションの配置 */
/*　section1　KOWAが望むひと　*/
.section1-1 {
    grid-column: span 8;
    position: relative;
}

.section1-2 {
    grid-column: span 3;
    background-image: url("images/section1-2/s1-02-tile-4.jpg"); /* 画像ファイルへのパスを指定 */
    background-repeat: no-repeat; 
    background-size:cover;/* 必要に応じて背景画像のサイズ設定 */
    position: relative; /* 子要素のabsoluteの基準となる */
}
.recruit-button {
  position: absolute;   /* sectionを基準に配置 */
  top: 360px;             /* 上からの位置（割合指定OK） */
  left: 90px;            /* 左からの位置（割合指定OK） */ 
  display: inline-block;
  background-color: #004AAD;
  font-size:64px; /* main ボタン */
  color: #fff;
  line-height: 1.2em;      /* 文字サイズに合わせてやや詰める */
  padding: 0.5em 1.2em;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.button--sub1 {
  top: 660px;             /* 上からの位置（割合指定OK） */
  left: 90px;            /* 左からの位置（割合指定OK） */
  font-size: 32px;
  letter-spacing: 0.5em;
  padding: 0.6em 1.4em;
}
.button--sub2 {
  top: 840px;             /* 上からの位置（割合指定OK） */
  left: 90px;            /* 左からの位置（割合指定OK） */
  font-size: 32px;
  letter-spacing: -0.1em;
  padding: 0.6em 0.8em;
}
.recruit-button:hover {
  background-color: #002f73;
}

/*　先輩に聞く　*/
.section2 {
    grid-column: span 13;
    position: relative;
}
  /*　Interview用コンテナ　*/
.interv-container {
  position: absolute;
  top: 210px;
  left: 20px;
  width: 930px;
  margin: 10px;
  padding: 10px;
  display: flex;
  align-items: flex-start;  /* 上端を揃える */
  gap: 10px;                /* 画像と文章の間隔 */
}
/* 画像部分 */
.interv-img {
  width: 500px;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
/* テキスト部分 */
.interv-text {
  flex: 1; /* 残りスペースを使用 */
}
/* キャプション */
.interv-caption {
  font-family: "Shippori Mincho", serif;
  font-size: 36px;
  font-weight: normal;
  color: #004AAD;;
  margin: 0 0 10px 0;
}
/* 説明文 */
.interv-desc {
  font-size: 24px;
  line-height: 1.5;
  margin: 0;
  color: #333;
}
/* サブクラスで位置調整 */
.interv-pos1 { top: 210px; left: 30px; }
.interv-pos2 { top: 210px; left: 950px; }
  /* キャプション付き画像　デフォルトのコンテナ */
.cap-container {
  position: absolute;
  top: 845px;
  left: 20px;
  width: 420px;
  margin: 10px;
  padding: 10px;
}
  /* 画像 */
.cap-img {
  width: 400px;
  height: 225px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 0;
}
  /* figure全体 */
.cap-figure {
  margin: 0;
  text-align: center; /* 中央寄せ */
}
  /* キャプション */
.cap-caption {
  font-family: "Shippori Mincho", serif;
  font-size: 36px;
  font-weight: normal;
  color: #004AAD;       /* テーマカラー */
  margin-bottom: 10px; /* 画像との間に余白 */
} 

  /* サブクラスで位置変更 */
.cap-pos1 { top: 470px; left: 250px; }
.cap-pos2 { top: 470px; left: 750px; }
.cap-pos3 { top: 470px; left: 1250px; }
/* 必要に応じて別位置を追加していける */

.s2-image3-list {
      position: absolute;
      top: 845px;
      left: 30px;
      width: 1350px;
      height: 300px;
      margin: 10px;
      padding: 0;

      display: flex;
      flex-wrap: wrap;   /* 2行に折り返し */
      list-style: none;  /* li のポチ消し */
    }

    /* 各ボックス */
    .s2-image3-list li {
      width: 450px;
      height: 150px;
      margin: 0;
      padding: 0;

      display: flex;
      align-items: center;
    }
/* 段落 */
  .s2-image3-list p {
    margin: auto 30px;
}


/* 2行目のセクションの配置 */

/*　KOWAを知る*/
.section3 {
    grid-column: span 8;
    position:relative;
}
.box-sec3 {
  position: absolute;
  top: 400px;
  left: 35px;
  width: 1124px;
  height: 749px;
  background-image: url('images/section3/about-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;         /* 横並び */
  align-items: flex-start; /* 上揃え */
  padding: 30px 60px;         /* 内側余白 */
}

.box-sec3-img {
  /*width: 553px;
  height: 318px;
  object-fit: cover;*/ /* 縦横比を維持しつつ枠に収める */
  margin-right: 70px; /* テキストとの間に余白 */
}
/* 文字を縦書き　*/
.box-sec3-text {
font-family: "Shippori Mincho", serif;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 40px;
  font-weight: normal; /* レギュラー */
  line-height: 1.8em; /* 広めな行間 */
  letter-spacing: normal; /* 文字間隔はデフォルト */
}

/*　メイン　*/
.section-main {
    grid-column: span 8;
    background-color: #004AAD;; 
    position: relative;
}
.main-logo{
  width: 720px;
  position: absolute;
  top: 280px;
  left: 600px;
  transform: translate(-50%, -50%);
}
.main-img1{
    position: absolute;
    top:789px;
    left:0;  
}
.main-img2{
    position: absolute;
    top:789px;
    left:453px;  
}
.main-p{
    position: absolute;
    width:720px;
    top: 90px;
    left: 600px;
    font-size:40px;
    font-family: "Noto Serif", serif;
    color: #fff;
    font-weight: normal;
    text-align: center;
    transform: translate(-50%, -50%);
}
.p1{
    top: 400px;
    left: 600px;
    font-size:36px;   
}
.p2{
    top: 520px;
    left: 600px;
    font-size:24px;
}
.main-trivia{
    position: absolute;
    width:402px;
    top: 1060px;
    left: 25px;
    font-size:12px;
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.0;      /* 文字サイズに合わせてやや詰める */
  color: #fff;
    text-align: left;
}


/*　KOWAの1日　福利厚生*/
.section4 {
    grid-column: span 8;
    position: relative;
}
.s4-img1{
  width: 600px;
  position: absolute;
  top: 190px;
  left: 50px;
}
.s4-day{
    position: absolute;
    width:449px;
    top: 230px;
    left: 685px;
    font-size:24px;
  margin: 1.0em 0;       /* 上下余白も少し広め */
  line-height: 1.0;      /* 文字サイズに合わせてやや詰める */
    text-align: left;
}
.s4-ben{
    position: absolute;
    width:1062px;
    top: 760px;
    left: 80px;
    font-size:32px;
    margin: 1.0em 0;       /* 上下余白も少し広め */
    line-height: 1.0;      /* 文字サイズに合わせてやや詰める */
    text-align: left;
}
/*.s4-trivia{
    position: absolute;
    width:380px;
    top: 550px;
    left: 150px;
    font-size:22px;
  margin: 1.0em 0;       /* 上下余白も少し広め */
 /* line-height: 1.0;      /* 文字サイズに合わせてやや詰める */
 /*   text-align: left;
}*/


/* sectionに共通　*/
/*　位置をして画像を配置する　*/
.section-title {
  margin: 0.8em 0;
  line-height: 1.0; /* 行間を狭める */
  font-weight: 400;
}
.title-pos{
  position: absolute;
}
.title-s1-pos1 { top: 0; left: 75px; width: 1000px;}
.title-s2-pos1 { top: 0; left: 500px; width: 800px;}
.title-s3-pos1 { top: 50px; left: 300px; width: 900px;}
.title-s4-pos1 { top: 0; left: 50px; width: 800px;}
.title-s4-pos2 { top: 660px; left: 600px; width: 500px;}

.img-pos{
  position: absolute;
  object-fit: cover;
  margin: 10px;
  padding: 0;
}
.img-s2-pos1 { top: 835px; left: 1390px; width:420px; height:315px}
.img-s1-pos1 { top: 700px; left: 60px; width:525px;}
.img-s1-pos2 { top: 700px; left: 600px; width:525px;}
.img-s3-pos1 { top: 50x; left: 20px; width:250px;}

/*　位置を指定して段落　lead　を配置する*/
.lead-pos{
    position: absolute;
}
.lead-s1-pos1{width:1077px; top: 200px; left: 90px;}
.lead-s3-pos1{width:978px; top: 250px; left: 90px; font-size: 36px}
/* 豆知識の位置を指定して配置する*/
.trivia-pos{
    position: absolute;
    text-align: left;
}
.trivia-s1-pos1{width:330px; top: 1030px; left: 60px;}
.trivia-s1-pos2{width:240px; top: 1050px; left: 880px;}
.trivia-s1-pos3{width:400px; top: 1005px; left: 440px;}
.trivia-s4-pos1{width:290px; top: 620px; left: 200px;}



/* --- Zoom ボタン --- */
.zoom-controls {
  /*position: absolute;*/
    position: fixed;
    bottom: 40px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}
.zoom-button {
    width: 45px;
    height: 45px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    margin: 0;
}
/* 無効状態 */
.zoom-button:disabled {
  color: #888888;   /* グレー表示 */
  cursor: default;  /* カーソルを通常に */
}

/* --- Hamburger Menu --- */
#hamburger-menu {
  /*position: absolute;*/
    position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
}

/* ハンバーガーボタン */
#menu-toggle {
  width: 70px;
  height: 70px;
  background: #000000;
  color: #ffffff;
  font-size: 32px;     /* ☰ のサイズ */
  border: none;
  border-radius: 0;    /* 四角で角丸なし */
  cursor: pointer;
}

/* メニュー全体（オーバーレイ） */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  padding: 40px 20px;
  box-sizing: border-box;

  display: flex;              /* ← 常にflexで配置 */
  justify-content: flex-end;
  align-items: flex-start;
}

/* 初期状態で非表示にするのはこっち */
#menu-overlay.hidden {
  display: none;
}

/* メニューリスト */
#menu-list {
  list-style: none;
  margin: 0;
  padding-top: 40px;
  padding-right: 49px;
  font-family: "Noto Sans JP", serif;
  font-size: 28px; /* 日本語部分 */
  color: #cccccc;  /* gray */
  text-align: right; /* テキスト右寄せ */
}

/* 各項目 */
#menu-list li {
  margin-bottom: 10px; /* 項目間の余白 */
}

/* 英語部分（小さい文字） */
#menu-list li span.en {
  display: block;
  font-size: 16px; /* 英語は少し小さく */
  color: #cccccc;
  opacity: 0.9;    /* 少し淡くしたければ */
}

/* メニュー内リンクの基本スタイル */
#menu-list li a {
  color: #cccccc;               /* 通常時の文字色（#f0f0f0より少しだけ落とすとホバーの変化が分かりやすい） */
  text-decoration: none;
  display: inline-block;         /* padding や transform を効かせやすくするため */
  padding: 6px 0;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
  text-shadow: none;
}

/* li にホバーしたときにリンクを強調（可視性を上げる） */
#menu-list li:hover a,
#menu-list li a:hover {
  color: #ffffff;                /* ホバー時は白に */
  transform: translateX(-6px);   /* 右寄せレイアウトなので左に少しスライドさせるとアクセントになります。不要なら削除可 */
  text-shadow: 0 2px 8px rgba(0,0,0,0.45); /* ふんわりした縁取りで視認性アップ */
}

/* 英語部分もホバーで白く（小さめ文字） */
#menu-list li span.en {
  color: #d9d9d9;
  transition: color 180ms ease, transform 180ms ease;
}
#menu-list li:hover span.en,
#menu-list li a:hover span.en {
  color: #ffffff;
  transform: translateX(-4px);
}

/* クリック対象を広げたい場合（タッチ操作対策） */
#menu-list li a {
  padding: 10px 0;
}
