/* CSSファイルをここに記述 */

@import url("../../css/components/page-cover.css");
@import url("../../css//components/animations.css");
@import url("../../css/components/responsive.css");

body,
div,
section,
header,
footer,
nav,
main,
article,
aside,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
a,
img {
  box-sizing: border-box;
}

body {
  --text-color--: #3e3e3e;
  --mincho-font--:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho",
    "MS Mincho", serif;
  background-image: url("../images/background_ppr.jpg");
  background-repeat: repeat;
  letter-spacing: 0.05em;
  font-size: 18px;
}

body.default {
  --text-color--: #3e3e3e;
  --mincho-font--:
    "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho",
    "MS Mincho", serif;
  background-image:
    url(../images/bg_kaneki_nami.svg), url(../../images/background_ppr.jpg);
  background-repeat: no-repeat, repeat;
  background-size: 1200px, auto;
  background-position: center 38px;
  letter-spacing: 0.05em;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*common block*/
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.6;
  color: var(--text-color--);
  background-color: #f8f8f8;
}

/* Typography */
h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 32px;
  font-family: var(--mincho-font--);
}

h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
}

h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

h5 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

h6 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0;
}

.header.scrolled {
  padding: 2px 0;
}

.header_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 80px;
  transition: all 0.3s ease;
}

.header.scrolled .logo img {
  height: 40px;
}

/* Navigation */
.nav_menu {
  display: flex;
  list-style: none;
  font-weight: bold;
  gap: 40px;
}

.nav_link {
  text-decoration: none;
  color: var(--text-color--);
  font-weight: 500;
  font-size: 18px;
  position: relative;
  padding: 10px 0;
  transition: color 0.3s ease;
  font-weight: bold;
}

.nav_link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--text-color--);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav_link:hover::after,
.nav_link.active::after {
  width: 100%;
}

.nav_link:hover {}

.nav_link.active {}

/* Main Content */
.main {
  margin-top: 86px;
  padding: 40px 0;
}

.greeting_section {
  padding: 20px 40px;
}

.page_title {
  text-align: center;
  padding: 0 0 30px;
  position: relative;
}

/* Footer */
.footer {
  background-image: url("../../images/background_ppr.jpg");
  background-repeat: repeat;
  background-color: #e2e5da;
  background-blend-mode: multiply;
  color: var(--text-color--);
  padding: 40px 0;
  margin-top: 80px;
  width: 100%;
}

.footer_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer_info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  font-family: var(--mincho-font--);
  font-weight: bold;
}

.footer_details p {
  font-size: 15px;
  opacity: 0.9;
  margin: 0;
}

.footer_logo img {
  height: 60px;
  opacity: 0.8;
  border: 2px solid transparent;
  /* 初期状態では透明なボーダー */
  transition: border-color 0.3s ease;
  /* ボーダーの色をアニメーション */
}

.footer_logo a:hover img {
  border-color: #5170ff;
  /* マウスオーバー時にボーダーの色を変更 */
}

/* Responsive Design */
@media (max-width: 768px) {
  body.default {
    background-size: 644px, auto;
    background-position: center 197px;
  }

  .header_container {
    flex-direction: column;
    gap: 20px;
  }

  .nav_menu {
    gap: 20px;
  }

  .nav_link {
    font-size: 16px;
  }

  .main {
    margin-top: 100px;
  }

  .greeting-section {
    padding: 40px 20px;
  }

  .greeting-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .president-photo {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer_container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 21px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .greeting-section {
    padding: 30px 15px;
  }

  .nav_menu {
    gap: 15px;
  }

  .nav_link {
    font-size: 14px;
  }

  h1 {
    font-size: 29px;
  }

  .greeting-text {
    font-size: 18px;
  }
}

.greeting-content {}

.president-photo {
  flex-shrink: 0;
  width: 300px;
}

.president-photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.greeting-text {
  flex: 1;
  font-size: 18px;
  line-height: 1.9;
}

.greeting-text p {
  margin-bottom: 32px;
  text-align: justify;
}