/*
Theme Name: Mottu Design WP Theme
Theme URI: https://mottudesign.com
Author: Mottu Design
Author URI: https://mottudesign.com
Description: Mottu Design公式サイト - Web制作、DX化支援、AIコンサルティング。ミニマルで上品なデザイン。
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mottu-wp-theme
*/

/* ============================================
   CSS Variables
   ============================================ */

/* スクロール制御 */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

:root {
  /* メインカラー */
  --accent: #0092dc;

  /* テキストカラー */
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;

  /* 背景カラー */
  --bg: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-dark: #222222;

  /* ボーダー・影 */
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* スペーシング */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* タイポグラフィ */
  --font-base: system-ui, "Noto Sans JP", sans-serif;
  --font-heading: system-ui, "Noto Sans JP", sans-serif;

  /* トランジション */
  --transition: 300ms ease;
  --transition-slow: 600ms ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  opacity: 0.7;
}

ul,
ol {
  list-style: none;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

.container--narrow {
  max-width: 800px;
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

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

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity var(--transition);
}

.header__logo-link:hover {
  opacity: 0.8;
}

.header__logo-image {
  height: 32px;
  width: auto;
  display: block;
}

.header__logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.header__nav ul {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.header__nav > ul > li {
  position: relative;
}

.header__nav .menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
}

.header__nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color var(--transition), color var(--transition);
  display: block;
}

.header__nav a:hover {
  background-color: var(--accent);
  color: #ffffff;
  opacity: 1;
}

.header__nav a.current-menu-item {
  color: var(--accent);
}

/* Dropdown Menu */
.header__nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0;
  flex-direction: column;
  gap: 0;
  z-index: 1100;
}

.header__nav .menu-item-has-children:hover > .sub-menu {
  display: flex;
}

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

.header__nav .sub-menu a {
  padding: 0.75rem 1.25rem;
  border-radius: 0;
  font-size: 0.95rem;
}

.header__nav .sub-menu a:hover {
  background-color: var(--accent);
  color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* モバイル時のスクロール制御 */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 80px 2rem 2rem;
    overflow-y: auto;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 0;
  }

  .header__nav li {
    border-bottom: 1px solid var(--border);
  }

  .header__nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
  }

  /* モバイルではホバースタイルを無効化 */
  .header__nav a:hover {
    background-color: transparent;
    color: var(--text);
  }

  /* Mobile Submenu */
  .header__nav .sub-menu {
    position: static;
    box-shadow: none;
    background: var(--bg-gray);
    margin: 0;
    padding: 0;
    border-radius: 0;
    display: none;
  }

  .header__nav .menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }

  /* PCのホバー効果をモバイルで無効化 */
  .header__nav .menu-item-has-children:hover > .sub-menu {
    display: none;
  }

  .header__nav .menu-item-has-children.is-open:hover > .sub-menu {
    display: flex;
  }

  /* 下層があることを示すアイコン */
  .header__nav .menu-item-has-children > a {
    position: relative;
    padding-right: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__nav .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
  }

  .header__nav .menu-item-has-children.is-open > a::after {
    transform: translateY(-25%) rotate(-135deg);
  }

  .header__nav .sub-menu a {
    padding: 0.75rem 0 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .header__nav .sub-menu li {
    border-bottom: none;
  }

  /* モバイルメニュー内のSNSアイコン */
  .header__social-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 1rem;
    margin-top: 1rem;
  }

  .header__social-mobile .footer__social-link {
    background-color: transparent;
    color: var(--text);
    border: none;
    width: auto;
    height: auto;
  }

  .header__social-mobile .footer__social-link:hover {
    background-color: transparent;
    color: var(--accent);
    transform: scale(1.2);
  }

  .header__social-mobile .footer__social-link svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: 0;
  overflow: hidden;
}

/* Fishing Animation */
.fishing-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  pointer-events: none;
  z-index: 1;
}

.fishing-rod {
  position: absolute;
  top: -100px;
  right: 10%;
  width: 4px;
  height: 150px;
  background: linear-gradient(to bottom, #8b4513 0%, #654321 100%);
  transform-origin: top center;
  animation: rodSwing 4s ease-in-out infinite;
  border-radius: 2px;
}

.fishing-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  animation: lineSwing 4s ease-in-out infinite;
}

.fishing-hook {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #c0c0c0;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: hookSwing 4s ease-in-out infinite;
}

.fishing-animation .fish {
  position: absolute;
  width: 60px;
  height: auto;
  opacity: 0.8;
  filter: brightness(1.2) drop-shadow(0 2px 10px rgba(0, 146, 220, 0.6));
  transition: opacity 0.3s ease, transform 0.3s ease;
  mix-blend-mode: lighten;
}

.fishing-animation .fish:hover {
  opacity: 1;
  transform: scale(1.1);
}

.fishing-animation .fish--1 {
  top: 50px;
  width: 70px;
  animation: swimRight 16s linear infinite;
}

.fishing-animation .fish--2 {
  top: 100px;
  width: 55px;
  animation: swimLeft 18s linear infinite;
  animation-delay: 5s;
}

.fishing-animation .fish--3 {
  top: 140px;
  width: 65px;
  animation: swimRight 20s linear infinite;
  animation-delay: 10s;
}

@keyframes rodSwing {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes lineSwing {
  0%, 100% {
    transform: translateX(-50%) rotate(-3deg);
  }
  50% {
    transform: translateX(-50%) rotate(3deg);
  }
}

@keyframes hookSwing {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@keyframes swimRight {
  0% {
    left: -60px;
    transform: scaleX(-1);
  }
  100% {
    left: calc(100% + 60px);
    transform: scaleX(-1);
  }
}

@keyframes swimLeft {
  0% {
    right: -60px;
    transform: scaleX(-1);
  }
  100% {
    right: calc(100% + 60px);
    transform: scaleX(-1);
  }
}

/* Scroll Fish Animation */
.scroll-fish {
  position: absolute;
  width: 80px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
  filter: brightness(0.8) contrast(1.2);
  transition: transform 0.3s ease-out, opacity 0.5s ease-out;
  will-change: transform, opacity;
}

.services .scroll-fish {
  top: 15%;
  right: 10%;
}

.works .scroll-fish {
  top: 20%;
  left: 8%;
}

.news .scroll-fish {
  top: 25%;
  right: 12%;
}

@media (max-width: 768px) {
  .scroll-fish {
    width: 50px;
  }
}

.footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.footer__about {
  display: flex;
  flex-direction: column;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--spacing-sm);
}

.footer__description {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

/* フッター連絡先 */
.footer__contact {
  margin-top: var(--spacing-md);
}

.footer__contact-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  margin: 0;
}

.footer__contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__nav {
  display: flex;
  justify-content: flex-end;
}

.footer__nav > ul {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: var(--spacing-xl);
  row-gap: 0.5rem;
  width: 100%;
  align-items: start;
}

.footer__nav > ul > li {
  position: relative;
}

/* 1列目：ホーム、サービス、実績一覧 */
.footer__nav > ul > li:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.footer__nav > ul > li:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.footer__nav > ul > li:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

/* 2列目：運営者情報、ブログ、お問い合わせ */
.footer__nav > ul > li:nth-child(4) {
  grid-column: 2;
  grid-row: 1;
}

.footer__nav > ul > li:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.footer__nav > ul > li:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
}

.footer__nav > ul > li > a {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
  display: block;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
}

.footer__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.footer__nav a:hover {
  color: #ffffff;
}

.footer__nav a:hover::after {
  width: 100%;
}

/* Footer Submenu */
.footer__nav .sub-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-left: 0;
  list-style: none;
}

.footer__nav .sub-menu a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  padding-left: 0;
}

.footer__nav .sub-menu a:hover {
  color: rgba(255, 255, 255, 1);
  transform: translateX(3px);
}

.footer__nav .sub-menu a::before {
  content: "";
  display: none;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer__nav {
    justify-content: flex-start;
  }

  .footer__nav > ul {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer__nav > ul > li {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* モバイル時のフッターメニューリンクの幅をテキストに合わせる */
  .footer__nav > ul > li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__nav > ul > li > a {
    display: inline-block;
    width: auto;
  }

  .footer__nav .sub-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__nav .sub-menu a {
    display: inline-block;
    width: auto;
  }
}

.footer__bottom {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ============================================
   Page Top Button
   ============================================ */
.page-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .page-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
  }

  .page-top svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 769px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr;
  }

  /* PC時はbodyのoverflow制御を解除 */
  body {
    overflow: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
  }

  /* PC時の画像固定を強制 */
  .company-profile .company-profile__content .company-profile__image {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 80px !important;
    transform: none !important;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #1a1a1a;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://mottu-design.com/wp-content/uploads/2025/10/landscape-sea-water-nature-outdoor-silhouette-1059777-pxhere.com_.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 146, 220, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: var(--spacing-xl) 0;
  max-width: 900px;
  margin: 0 auto;
}

.hero__subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
  padding: 0.5rem 1.5rem;
  background-color: rgba(0, 146, 220, 0.8);
  border-radius: 50px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  min-height: 1.5em;
}

.hero__title-typewriter {
  border-right: 3px solid var(--accent);
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  from, to {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

.hero__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.8;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Services Section
   ============================================ */
.services {
  position: relative;
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section__title {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section__description {
  color: var(--text-light);
  max-width: 600px;
  margin: var(--spacing-sm) auto 0;
}

.service-card {
  padding: var(--spacing-md);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  padding: var(--spacing-sm);
  background: linear-gradient(135deg, var(--accent) 0%, #0077b3 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.service-card__description {
  color: var(--text-light);
  /* margin-bottom: var(--spacing-md); */
  line-height: 1.8;
}

/* ============================================
   Works Section
   ============================================ */
.works {
  position: relative;
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-gray);
  overflow: hidden;
}

/* ============================================
   News Section
   ============================================ */
.news {
  position: relative;
  padding: var(--spacing-xl) 0;
  background-color: var(--bg);
  overflow: hidden;
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.news-item {
  display: grid;
  grid-template-columns: 100px 120px 1fr;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: var(--bg-gray);
}

.news-item__date {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 500;
}

.news-item__category {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.news-item__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.news-item__title a {
  color: var(--text);
  transition: color var(--transition);
}

.news-item__title a:hover {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .news-item__date,
  .news-item__category {
    justify-self: start;
  }
}

/* ============================================
   Card Components
   ============================================ */
.card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card__image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background-color: var(--bg-gray);
  overflow: hidden;
}

.card__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__body {
  padding: var(--spacing-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card__category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--accent);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.card__title a {
  color: var(--text);
  transition: color var(--transition);
}

.card__title a:hover {
  color: var(--accent);
  opacity: 1;
}

.card__excerpt {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.card__date {
  color: var(--text-muted);
}

.card__link {
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card__link::after {
  content: '→';
  transition: transform var(--transition);
}

.card__link:hover::after {
  transform: translateX(4px);
}

/* ============================================
   Parallax Section
   ============================================ */
.parallax {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('https://mottu-design.com/wp-content/uploads/2025/10/miho-sea.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.parallax__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: var(--spacing-lg);
}

.parallax__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.parallax__text {
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  max-width: 700px;
  margin: 0 auto;
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
    min-height: 400px;
  }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, #0077b3 100%);
  color: #ffffff;
}

.contact .section__title {
  color: #ffffff;
}

.contact .section__title::after {
  background-color: #ffffff;
}

.contact .section__description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   Buttons
   ============================================ */
.c-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 146, 220, 0.3);
}

.c-btn:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 146, 220, 0.4);
  opacity: 1;
}

.c-btn--secondary {
  background-color: #ffffff;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.c-btn--secondary:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 146, 220, 0.4);
  opacity: 1;
}

.c-btn--outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.c-btn--outline:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 146, 220, 0.4);
  opacity: 1;
}

/* ============================================
   Fade-up Animation
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Archive & Single Pages
   ============================================ */
.page-header {
  padding: var(--spacing-lg) 0;
  text-align: center;
  background-color: var(--bg-gray);
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--spacing-sm);
}

.page-header__description {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background-color: var(--bg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.archive-filter__item {
  padding: 0.5rem 1rem;
  background-color: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  cursor: pointer;
}

.archive-filter__item:hover,
.archive-filter__item.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.article {
  max-width: 800px;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
  background-color: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.article__header {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.article__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
}

.article__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article__thumbnail {
  margin-bottom: var(--spacing-lg);
  border-radius: 8px;
  overflow: hidden;
}

.article__thumbnail img {
  width: 100%;
  height: auto;
}

.article__content {
  font-size: 1.0625rem;
  line-height: 1.9;
  color: var(--text);
}

.article__content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border);
}

.article__content h3 {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.article__content p {
  margin-bottom: var(--spacing-md);
}

.article__content ul,
.article__content ol {
  margin-bottom: var(--spacing-md);
  padding-left: 1.5rem;
  list-style: disc;
}

.article__content ol {
  list-style: decimal;
}

.article__content li {
  margin-bottom: 0.5rem;
}

.article__content a {
  text-decoration: underline;
}

.article__content img {
  margin: var(--spacing-md) 0;
  border-radius: 8px;
}

/* Work Single Page */
.work-info {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background-color: var(--bg-gray);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.work-info__title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--accent);
}

.work-info__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border);
}

.work-info__item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.work-info__label {
  font-weight: 600;
  color: var(--text);
}

.work-info__value {
  color: var(--text-light);
}

.work-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.work-info__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text);
}

.work-cta {
  margin: var(--spacing-lg) 0;
  text-align: center;
}

.related-works {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--border);
}

.related-works__title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-sm);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.pagination a:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  opacity: 1;
}

.pagination .current {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ============================================
   Company Profile Page
   ============================================ */
.company-profile {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg);
}

.company-profile .container {
  overflow: visible;
}

.company-profile__content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  align-items: flex-start;
}

.company-profile__image {
  position: sticky;
  top: 80px;
  height: max-content;
}

.company-profile__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: block;
}

.company-profile__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.company-profile__heading {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--accent);
}

.company-profile__text p {
  line-height: 2;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.company-profile__list {
  list-style: none;
  padding: 0;
}

.company-profile__list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
  color: var(--text-light);
}

.company-profile__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.company-info {
  max-width: 800px;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-lg);
  background-color: var(--bg-gray);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.company-info__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
}

.company-info__table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.company-info__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.company-info__row:last-child {
  border-bottom: none;
}

.company-info__row dt {
  font-weight: 700;
  color: var(--text);
}

.company-info__row dd {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.company-info__row dd a {
  color: var(--accent);
  text-decoration: underline;
}

.company-cta {
  text-align: center;
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
}

.company-cta h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.company-cta p {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   Service Detail Page
   ============================================ */
.service-detail {
  padding: var(--spacing-xl) 0;
}

.service-detail__content {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  line-height: 2;
}

.service-detail__content h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border);
}

.service-detail__content p {
  margin-bottom: var(--spacing-md);
}

.service-features,
.service-recommended,
.service-pricing {
  margin: var(--spacing-xl) 0;
}

.feature-card {
  padding: var(--spacing-md);
  background-color: var(--bg-gray);
  border-radius: 8px;
  text-align: center;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 50%;
  color: #ffffff;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-light);
}

.recommended-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.recommended-list li {
  position: relative;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  background-color: var(--bg-gray);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  line-height: 1.8;
}

.recommended-list li::before {
  content: '✓';
  position: absolute;
  left: var(--spacing-md);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}

.pricing-info {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  background-color: var(--bg-gray);
  border-radius: 12px;
  line-height: 2;
}

.service-cta {
  text-align: center;
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(0, 146, 220, 0.05) 0%, rgba(0, 119, 179, 0.05) 100%);
  border-radius: 12px;
}

.service-cta h3 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.service-cta p {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

.other-services {
  padding: var(--spacing-xl) 0;
  background-color: var(--bg-gray);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
  }

  .header__nav ul {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .work-info__item {
    grid-template-columns: 1fr;
  }

  .article {
    padding: var(--spacing-md);
  }

  .company-profile__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    position: static;
  }

  .company-profile__image {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
  }

  .company-info__row {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ============================================
   Contact Form 7 Styling
   ============================================ */
.wpcf7 {
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7 p {
  margin-bottom: var(--spacing-md);
}

.wpcf7 label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-base);
  color: var(--text);
  background-color: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 150, 224, 0.1);
}

.wpcf7 textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--accent);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(0, 150, 224, 0.3);
}

.wpcf7 input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 150, 224, 0.4);
}

.wpcf7 input[type="submit"]:active {
  transform: translateY(0);
}

.wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
  padding: 1rem 1.5rem;
  margin: var(--spacing-md) 0;
  border-radius: 8px;
  font-weight: 500;
}

.wpcf7-validation-errors {
  background-color: #fee2e2;
  border: 2px solid #dc2626;
  color: #991b1b;
}

.wpcf7-mail-sent-ok {
  background-color: #d1fae5;
  border: 2px solid #10b981;
  color: #065f46;
}

.wpcf7-spinner {
  margin-left: 1rem;
}

