/*
Theme Name: Umiyama-theme
Author: komainu99
Description: 豊の国海幸山幸ネットのテーマです。
Version: 1.0
*/


/* Fonts */
:root {
  --default-font: "源ノ角ゴシック", "Source Han Sans", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
  --heading-font: "源ノ角ゴシック", "Source Han Sans", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --nav-font: "源ノ角ゴシック", "Source Han Sans", "Noto Sans CJK JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #1b2a38; 
  --accent-color: #3266a1;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #212529;
  --nav-hover-color: #3266a1;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #212529;
  --nav-dropdown-hover-color: #3266a1;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

.text-vertical {
  writing-mode: vertical-rl;
  display: inline-block;
  text-orientation: upright;
}



/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  position: sticky; /* スクロール時に追従 */
  top: 0; /* 画面上部に固定 */
  z-index: 1050; /* 他の要素より前面に表示 */
  background: var(--background-color); /* 背景色を設定 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 下部に影を追加 */
}

.header .logo {
  line-height: 1;
}

.header img {
  max-height: 32px;
  margin-right: 8px;
}

.logo img {
  max-height: 60px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 900;
  color: var(--heading-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px color-mix(in srgb, var(--default-color), transparent 85%);
}

/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    display: flex; /* フレックスボックスを使用 */
    list-style: none; /* リストのデフォルトスタイルを削除 */
    padding: 0;
    margin: 0;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px color-mix(in srgb, var(--default-color), transparent 85%);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px color-mix(in srgb, var(--default-color), transparent 90%);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-title:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
  font-family: var(--heading-font);
  font-size: 32px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: calc(100vh - 100px);
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  position: relative;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero .carousel-item:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 60%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .carousel-container {
  position: absolute;
  inset: 90px 64px 64px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3;
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 900;
  animation: fadeInDown 1s both;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}

.hero p {
  animation: fadeInDown 1s both 0.2s;
}

@media (min-width: 1024px) {

  .hero h2,
  .hero p {
    max-width: 60%;
  }
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  animation: fadeInUp 1s both 0.4s;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  transition: 0.3s;
  opacity: 0.5;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

@media (min-width: 1024px) {

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 5%;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

.hero .carousel-indicators {
  list-style: none;
}

.hero .carousel-indicators li {
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* --- フッター上部に影とグラデーション、全体におしゃれな装飾 --- */
footer {
  box-shadow: 0 -8px 32px -8px rgba(50, 102, 161, 0.15);
  background: linear-gradient(120deg, #ffffff 60%, #e3eefe 100%);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  padding-top: 48px;
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.footer-top {
  padding-bottom: 32px;
}

.footer-about .logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-color);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.footer-about .sitename {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  color: var(--accent-color);
  letter-spacing: 2px;
}

.footer-contact p,
.footer-contact a {
  color: var(--accent-color);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.social-links a {
  background: var(--background-color);
  color: var(--accent-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(50,102,161,0.08);
  transition: background 0.3s, color 0.3s, box-shadow 0.2s, transform 0.2s;
}
.social-links a:hover {
  background: var(--accent-color);
  color: var(--background-color);
  transform: translateY(-3px) scale(1.08);
}

.footer-links h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 0.5rem;
}

.footer-links ul {
  padding-left: 0;
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.7rem;
}

.footer-links ul a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  position: relative;
  padding-left: 0.5em;
}

.footer-links ul a::before {
  content: "›";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.1em;
  opacity: 0.5;
}

.footer-links ul a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid var(--accent-color);
  padding-top: 18px;
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--accent-color);
  background: transparent;
}

@media (max-width: 767px) {
  footer {
    border-radius: 16px 16px 0 0;
    padding-top: 32px;
    margin-top: 32px;
  }
  .footer-about .logo {
    font-size: 1.3rem;
  }
  .footer-links h4 {
    font-size: 1rem;
  }
}


/* トロフィー実績カードの装飾 */
.trophy-card {
  background: var(--surface-color);
  border-radius: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.trophy-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px -8px rgba(255, 193, 7, 0.18);
}


/* style.css に追加 */
/* 代表紹介ページのレスポンシブスタイル */

/* プロフィール画像 */
.profile-image {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* プロフィール情報 */

/* セクションブロック */
.section-block {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 1.5rem;
}

/* セクションタイトル */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.subsection-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* カスタムリスト */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.custom-list li::before {
    content: "🌿";
    position: absolute;
    left: 0;
    top: 0;
}

.custom-list a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-color);
}

.custom-list a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .profile-image {
        max-width: 150px;
        margin: 0 auto 1rem;
    }
    
    .section-block {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .subsection-title {
        font-size: 1.1rem;
    }
    
    .profile-credentials p {
        font-size: 1rem;
        text-align: center;
    }
    
    .custom-list li {
        padding-left: 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .section-block {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .profile-credentials p {
        font-size: 0.9rem;
    }
}

/* タブレット向け調整 */
@media (min-width: 768px) and (max-width: 991px) {
    .profile-image {
        max-width: 180px;
    }
    
    .section-block {
        padding: 1.25rem;
    }
}

/* ヘッダーレスポンシブ対応 */
header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--background-color);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

/* ナビゲーションリンクのスタイル */
.navbar-nav .nav-link {
    color: var(--accent-color) !important;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--background-color);
    color: var(--accent-color) !important;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.dropdown-item {
    color: var(--accent-color) !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--background-color);
    color: var(--accent-color);
}

/* レスポンシブ調整 */
@media (max-width: 1199px) {
    .navbar-brand img {
        max-width: 200px !important;
        max-height: 50px !important;
    }
}

@media (max-width: 991px) {
    .navbar-brand img {
        max-width: 180px !important;
        max-height: 45px !important;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .nav-item {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        max-width: 160px !important;
        max-height: 40px !important;
    }
}