/* =================================================
   色の設定
   ================================================= */
:root {
  --primary-color: #004D73;
  --secondary-color: #0080BF;
  --text-color: #333333;
  --link-color: #0080BF;
  --link-hover-color: #00aaff;
  --bg-color: #ffffff;
  --light-bg-color: #f4f8fa;
  --footer-bg: #004D73;
  --footer-text: #ffffff;
  --border-color: #e0e0e0;
}

/* =================================================
   基本設定
   ================================================= */
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
  padding-top: 80px;
}

h1 {
  color: var(--secondary-color);
  text-align: center;
}

h2 {
  color: var(--secondary-color);
  text-align: left;
  font-size: 1.4rem;
}

h3 {
  color: var(--secondary-color);
  text-align: left;

}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

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

main {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 30px;
}

/* ---------- ページ切り替え ---------- */
.page {
  display: none;
}
.page.active {
  display: block;
}

/* =================================================
   ヘッダー（追従・白背景）
   ================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-color);
  padding: 16px 30px 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  box-sizing: border-box;
  height: 65px;
}

header .logo img {
  height: 50px;
  padding-top: 14px;
}


/* =================================================
   ハンバーガーメニュー（常時表示）
   ================================================= */
/* ナビゲーション全体 */
.global-nav {
  position: fixed;
  top: 65px;
  right: 0;
  width: 30%;
  height: calc(100vh - 65px);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  transform: translateX(100%);
  transition: transform 0.4s;
  overflow-y: auto;
}

.global-nav.active {
  transform: translateX(0);
}

.global-nav .button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
}

.global-nav .button a {
  padding: 20px 0;
  font-size: 1.2rem;
  width: 100%;
  text-align: center;
  color: var(--primary-color);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.global-nav .button a:hover {
  color: var(--link-color);
  text-decoration: underline;
  
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ハンバーガーボタン本体 */
.hamburger-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-button:focus {
  outline: none;
}

.hamburger-button span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.4s;
}

.hamburger-button span:last-child {
  position: relative;
  top: 1px;
}

/* ハンバーガーボタンが開いた時 */
.hamburger-button.active span:nth-of-type(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.hamburger-button.active span:nth-of-type(2) {
  opacity: 0;
}
.hamburger-button.active span:nth-of-type(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}


/* =================================================
   フッター
   ================================================= */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 5%;
  text-align: center;
}

footer .footlinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px 60px;
  margin-bottom: 40px;
  text-align: left;
}

.footlinks section a {
  color: var(--footer-text);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;

  transition: transform 0.3s ease;
}

.footlinks section a:hover {
  text-decoration: underline;
  
  transform: translateY(-3px);
}

.footlinks section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footlinks section li {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 5px;
}

footer .copyright {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* =================================================
   各ページの固有スタイル
   ================================================= */
/*--- HOME ---*/
.top {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(80vh - 65px);
  background-image: url('images/top.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  margin-top: 65px;
}

.top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 769px) {
  .top {
    position: relative;
  }
  
  .topContent {
    position: absolute;
    bottom: 10%;
    right: 16%;
    z-index: 1;
    text-align: right;
    max-width: 50%;
    white-space: nowrap;
    color: #ffffff;
  }
  
  .topContent h5 {
    font-size: 2.5rem;
    margin-bottom: 0px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-left: none;
    padding-left: 0;
  }
  
  .topContent p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }
}

/* 事業内容 */
.businessDetails {
  margin: 60px 0;
}

.businessDetails section, .recruit section, .company section, .presidentDetail section {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 20px;
  margin-bottom: 0;
  align-items: center;
}

.businessDetails > section:last-child,
.recruit > section:last-child,
.company > section:last-child,
.presidentDetail > section:last-child {
  border-bottom: none;
}


/* スタッフ募集 */
.recruit {
  margin: 80px 0;
}

.recruit p, .company p, .presidentDetail p { margin: 0; }
#index { font-weight: bold; color: var(--primary-color); }
.philosophy ul { list-style-type: none; padding-left: 0; }
.philosophy .number { font-weight: bold; font-size: 1.2rem; color: var(--primary-color); margin-top: 20px; }
.philosophy ol { padding-left: 20px; }

.staff {
  text-align: center;
  margin-top: 30px;
}

.staff a {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  padding: 12px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.staff a:hover {
  background-color: var(--secondary-color);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

#index {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
}


/*--- 会社概要 ---*/
/* 企業理念 */
.philosophy {
  text-align: center;
  padding: 0px 20px 80px;
  margin-bottom: 30px;
}

.philosophy h1 {
  padding-bottom: 20px;
}

.philosophy-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.philosophy-item {
  flex: 0 0 auto;
}

.circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 20px;
  box-sizing: border-box;
}

.circle p {
  margin: 0;
  line-height: 1.6;
}

/*--- 代表紹介 ---*/
.company section,
.presidentDetail section {
  padding: 25px 0;
}

rt {
  font-size: 0.6em;
}

#Kusano {
  border-radius: 10px;
}

.presidentImg {
  display: flex;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 30px;
}

.presidentImg > section:first-child img {
  height: 100%;
  object-fit: cover;
}

.presidentImg img {
  width: 200px;
  height: auto;
}

.presidentImg section:nth-of-type(2) a img {
  width: 36px;
  height: auto;
  margin-right: 8px;
  transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.presidentImg section:nth-of-type(2) a img:hover {
  opacity: 0.6;
  transform: scale(0.85);
}

.presidentDetail #detail { grid-column: 2 / 3; }
.presidentDetail li { list-style: none; }

/*--- スタジオ ---*/
#ready {
  text-align: center;
  margin: 5%;
}

#ready img {
  height: 300px;
}

#ready p {
  font-size: 1.1rem;
}

/*--- お問合せ ---*/
#contactEx {
  text-align: center;
}

iframe {
  width: 100%;
  height: 1300px;
}

/* スマートフォン表示 */
@media (max-width: 768px) {
  .global-nav{
    width: 100%;
  }

  .top {
    min-height: 250px;
    justify-content: center;
  }
  
  .topContent {
    max-width: 100%;
    color: var(--primary-color);
    text-align: center;
    padding: 0px 20px 0;
    margin: 20px 0 50px;
    white-space: normal;
  }
  
  .topContent h5 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    text-shadow: none;
    margin: 0;
  }
  
  .topContent p {
    font-size: 1rem;
    color: var(--text-color);
    text-shadow: none;
    margin: 0;
  }

  .businessDetails section, .recruit section, .company section, .presidentDetail section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .presidentImg { flex-direction: column; text-align: center; }
  .presidentDetail #detail { grid-column: 1 / 2; }

  footer {
    flex-direction: column;
    gap: 1.2rem;
    justify-content: center;
  }

  footer .footlinks {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}