/*
Theme Name: VIFAMI
Theme URI: https://vifami.jp
Author: VIFAMI Team
Author URI: https://vifami.jp
Description: VIFAMIのための専門的なビジネスサポートテーマ - 法務・税務・ビザサービス
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vifami
Tags: business, corporate, professional, multilingual
*/

/* ==========================================
   カラー変数 - VIFAMIブランドカラー
   ========================================== */
:root {
  --primary-blue: #2B7DC1;
  --primary-blue-dark: #1E5A8F;
  --primary-blue-light: #4A9FE5;
  --accent-blue: #5CB3FF;
  --text-dark: #2C3E50;
  --text-gray: #6C757D;
  --text-light: #ADB5BD;
  --bg-light: #F8FAFB;
  --bg-white: #FFFFFF;
  --border-color: #E1E8ED;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ==========================================
   リセット & ベーススタイル
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'メイリオ', Meiryo, sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--primary-blue);
}

ul {
  list-style: none;
}

/* ==========================================
   タイポグラフィ
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  padding-bottom: 1.5rem;
}

h2.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  border-radius: 2px;
}

h2.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.9;
}

.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 2;
}

/* ==========================================
   コンテナ & レイアウト
   ========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-blue {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: white;
}

.section-blue h2,
.section-blue h3,
.section-blue p {
  color: white;
}

/* ==========================================
   グリッドシステム
   ========================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  flex: 1;
  padding: 0 15px;
}

.col-2 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

.col-3 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

.col-4 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
}

/* ==========================================
   ヘッダー & ナビゲーション
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: transparent;           /* trong suốt trên hero */
  backdrop-filter: none;
  box-shadow: none;

  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  transition: padding 0.3s ease;
}

/* LOGO */
.site-branding {
  display: flex;
  align-items: center;
}

.site-logo-img {
  display: flex;
  align-items: center;
}

.site-logo-img img {
  height:50px;
  width: auto;
  display: block;
}

/* nếu dùng chữ VIFAMI */
.site-logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.main-nav > ul > li > a {
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.45);
}

/* khi header scroll xuống */
.site-header.scrolled .main-nav > ul > li > a {
  color: var(--text-dark);
  text-shadow: none;
}

/* underline */
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.current-menu-item > a::after {
  width: 100%;
}

/* DROPDOWN */
.main-nav li {
  position: relative;
}

.menu-item-has-children > a::before {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 0.4rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.menu-item-has-children:hover > a::before {
  transform: rotate(180deg);
}

/* dropdown list dọc, không căn giữa */
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform: translateY(-10px);

  min-width: 220px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;

  padding: 0;
  z-index: 2000;
}

.main-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .sub-menu li {
  width: 100%;
}

.main-nav .sub-menu a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-dark);
  border-left:none;
  transition: all 0.25s ease;
}

.main-nav .sub-menu a:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
  border-left-color: none;
}

/* HEADER CTA */
.header-cta {
  margin-left: 1.5rem;
}

.header-cta .btn {
  padding: 0.55rem 1.6rem;
  font-size: 0.9rem;
  border-radius: 999px;
}

.site-header .header-cta .btn.btn-blue {
  background: #ffffff;
  color: var(--primary-blue);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.site-header.scrolled .header-cta .btn.btn-blue {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: none;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1100;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled .menu-toggle span {
  background: var(--primary-blue);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* ==========================================
   ヒーローセクション
   ========================================== */

.hero-ogino {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #f5f5f7;

  font-family:
    "游ゴシック体",
    "Yu Gothic",
    YuGothic,
    "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN",
    "メイリオ",
    Meiryo,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero-ogino__inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.hero-ogino__brand {
  background-color: #0b396e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.hero-ogino__brand-inner { text-align:left; }

.hero-ogino__logo-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.95);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:2rem;
  transition:all .3s ease;
}

.hero-ogino__logo-circle:hover {
  transform:scale(1.05);
  border-color:#fff;
}

.hero-ogino__logo-text {
  font-size:1.85rem;
  font-weight:700;
  letter-spacing:0.18em;
}

.hero-ogino__brand-name {
  font-size:1.1rem;
  line-height:1.85;
  letter-spacing:0.2em;
  margin-bottom:1.5rem;
  font-weight:500;
}

.hero-ogino__brand-sub {
  font-size:0.82rem;
  line-height:1.9;
  letter-spacing:0.08em;
  opacity:0.85;
}

/* PHOTO */
.hero-ogino__photo {
  position:relative;
  overflow:hidden;
}

.hero-ogino__photo-bg-wrapper {
  position:absolute;
  inset:0;
}

.hero-ogino__photo-bg--slide {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1.4s cubic-bezier(0.4,0,0.2,1);
}

.hero-ogino__photo-bg--slide.is-active {
  opacity:1;
}

.hero-ogino__overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,
            rgba(255,255,255,0.02) 0%,
            rgba(255,255,255,0.0) 100%);
  z-index:1;
}

/* CONTENT */
.hero-ogino__content {
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:center;
  padding:6rem clamp(2rem,6vw,8rem);
}

.hero-ogino__text-card {
  max-width:560px;
  background-color:rgba(255,255,255,0.97);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:#0b396e;

  border-radius:10px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.15),
    0 4px 12px rgba(0,0,0,0.08);
  transition:all .4s ease;
}

.hero-ogino__text-card:hover {
  transform:translateY(-4px);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.18),
    0 6px 16px rgba(0,0,0,0.1);
}

.hero-ogino__title {
  font-size:30px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:0.08em;
  margin:0 0 1.75rem;
  text-align:justify;
  color:#0b396e;
}

.hero-ogino__subtitle {
  font-size:clamp(0.95rem,1.1vw,1.05rem);
  line-height:2;
  letter-spacing:0.04em;
  color:rgba(11,57,110,0.85);
  font-weight:400;
  margin:0 0 2.5rem;
  text-align:justify;
}

.hero-ogino__buttons {
  display:flex;
  flex-wrap:wrap;
  gap:1.25rem;
}

.hero-ogino__btn {
  min-width:190px;
  padding:0.95rem 2.2rem;
  border-radius:50px !important;
  font-weight:600;
  font-size:0.95rem;
  letter-spacing:0.06em;
  transition:all .3s cubic-bezier(.4,0,.2,1);
  text-align:center;
  display:inline-block;
}

.hero-ogino__btn--primary {
  background-color:#0b396e !important;
  border:2px solid #0b396e !important;
  color:#fff !important;
}

.hero-ogino__btn--primary:hover {
  background-color:#082748 !important;
  border-color:#082748 !important;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(11,57,110,0.3);
}

.hero-ogino__btn--outline {
  background-color:transparent !important;
  border:2px solid #0b396e !important;
  color:#0b396e !important;
}

.hero-ogino__btn--outline:hover {
  background-color:#0b396e !important;
  color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(11,57,110,0.25);
}

/* SLOGAN */
.hero-ogino__slogan {
  position:absolute;
  right:3.5rem;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
}

.hero-ogino__slogan-text {
  writing-mode:vertical-rl;
  text-orientation:mixed;
  font-size:1rem;
  line-height:1.75;
  letter-spacing:0.3em;
  font-weight:500;
  color:#fff;
  background-color:rgba(11,57,110,0.75);
  backdrop-filter:blur(8px);
  padding:2rem .75rem;
  border-radius:50px;
  box-shadow:0 8px 24px rgba(0,0,0,0.2);
  transition:all .3s ease;
}

.hero-ogino__slogan-text:hover {
  background-color:rgba(11,57,110,0.9);
  letter-spacing:0.35em;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hero-ogino__content {
    padding:5rem 4vw;
  }
  .hero-ogino__text-card {
    max-width:520px;
    padding:2rem 2rem;
  }
  .hero-ogino__slogan {
    right:2.5rem;
  }
}

@media (max-width: 1024px) {
  .hero-ogino__inner {
    grid-template-columns:220px minmax(0,1fr);
  }
  .hero-ogino__content {
    padding:4.5rem 3vw;
  }
  .hero-ogino__text-card {
    padding:2.25rem 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-ogino__inner {
    grid-template-columns:88px minmax(0,1fr);
    min-height:100vh;
  }
  .hero-ogino__brand {
    padding:1.8rem 0.7rem;
  }
  .hero-ogino__brand-inner {
    text-align:center;
  }
  .hero-ogino__logo-circle {
    width:72px;
    height:72px;
    margin:0 auto 1.4rem;
  }
  .hero-ogino__logo-text {
    font-size:1.65rem;
  }
  .hero-ogino__brand-name {
    font-size:0.82rem;
    line-height:1.7;
    letter-spacing:0.16em;
  }
  .hero-ogino__brand-sub {
    font-size:0.72rem;
    line-height:1.8;
  }
  .hero-ogino__content {
    align-items:flex-end;
    padding:3.5rem 1.5rem 3rem;
  }
  .hero-ogino__text-card {
    max-width:100%;
    padding:2rem 2rem;
    margin-bottom:1rem;
  }
  .hero-ogino__title {
    font-size:30px;
    line-height:1.65;
    letter-spacing:0.1em;
    margin-bottom:1.5rem;
  }
  .hero-ogino__subtitle {
    font-size:0.92rem;
    line-height:1.95;
    margin-bottom:2rem;
  }
  .hero-ogino__buttons {
    flex-direction:column;
    gap:1rem;
  }
  .hero-ogino__btn {
    width:100%;
    min-width:auto;
    padding:0.9rem 1.8rem;
  }
  .hero-ogino__slogan {
    right:1.2rem;
    bottom:5rem;
    top:auto;
    transform:none;
  }
  .hero-ogino__slogan-text {
    font-size:0.85rem;
    letter-spacing:0.28em;
    padding:1.5rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .hero-ogino__text-card {
    padding:1rem 1rem;
    border-radius:5px;
  }
  .hero-ogino__title {
    font-size:1.7rem;
    letter-spacing:0.08em;
  }
  .hero-ogino__subtitle {
    font-size:0.88rem;
    line-height:1.9;
  }
  .hero-ogino__slogan {
    right:1rem;
    bottom:4.5rem;
  }
  .hero-ogino__slogan-text {
    font-size:0.8rem;
    padding:1.3rem 0.55rem;
  }
}

/* PRINT */
@media print {
  .hero-ogino {
    min-height:auto;
    page-break-inside:avoid;
  }
  .hero-ogino__photo-bg-wrapper,
  .hero-ogino__overlay {
    display:none;
  }
}

/* ANIMATIONS */
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-15px); }
  60% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scrollDot {
  0% {
    opacity:1;
    transform:translateX(-50%) translateY(0);
  }
  100% {
    opacity:0;
    transform:translateX(-50%) translateY(25px);
  }
}
