/*
Theme Name: OriginalTheme
Theme URI: https://aloug.com
Author: E.H
Author URI: https://aloug.com
Description: WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://aloug.com
Text Domain: myoriginaltheme
*/
:root {
  /* ===== Font Sizes ===== */
  --font-xs: clamp(0.75rem, 0.3vw, 0.875rem);
  --font-sm: clamp(0.875rem, 1.05vw, 1rem);
  --font-base: clamp(1rem, 1.2vw, 1.125rem);
  --font-md: clamp(1.125rem, 1.4vw, 1.25rem);
  --font-lg: clamp(1.25rem, 1.8vw, 1.5rem);
  --font-xl: clamp(1.5rem, 2.2vw, 2rem);
  --font-xxl: clamp(2rem, 4vw, 3rem);
  --font-4xl: clamp(3rem, 7vw, 7srem);

  /* ===== Spacing / Margin / Padding ===== */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 1rem);
  --space-md: clamp(1rem, 2vw, 2rem);
  --space-lg: clamp(2rem, 4vw, 4rem);
  --space-xl: clamp(4rem, 6vw, 6rem);

  /* ===== Layout Sizes ===== */
  --container-width: 1200px;
  --sidebar-width: clamp(140px, 10vw, 200px);
  --gutter: clamp(1rem, 2vw, 2rem);

  /* ===== Line Height ===== */
  --line-height-base: 1.7;
  --line-height-tight: 1.4;
  --line-height-loose: 1.9;

  /* ===== Border Radius ===== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* ===== Transition ===== */
  --transition-fast: 0.2s ease;
  --transition-slow: 0.5s ease;

  /* ===== width ===== */
  --content-min-width: 1000px;
  --content-preferred-width: calc(70vw + 10rem);
  --content-max-width: 1800px;
  --content-max-width-auto: auto;

  /* ===== color ===== */
  --Mcolor: #333333;

}

/* Reset & 基本設定 */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(1rem, 1vw, 2rem);
}


body {
  font-family: "Maven Pro", 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  margin: 0;
  background-color: #f8f8f4;
  background-image: url('img/zara.webp');
  background-size: 25%;
  background-repeat: repeat;
  line-height: 1.8;
}

a {
  color: #444;
  text-decoration: none;
}

/* セクション間の上下マージン */
section {
  margin: 2.5rem 0;
}

/* 見出しのマージン調整 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
}

/* 大見出し（h1） */
h1 {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  line-height: 1.3;
}

/* 中見出し（h2） */
h2 {
  margin-top: 2rem;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  line-height: 1.35;
}

/* 小見出し（h3） */
h3 {
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  line-height: 1.4;
}

/* 段落（p）のマージン */
p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  line-height: 2;
  font-size: var(--font-xs);
  color: #333;
}

/* 箇条書き・番号リスト */
ul,
ol {
  margin: 1rem 0 1.25rem 1.5rem;
  padding: 0;
  line-height: 1.6;
  font-size: var(--font-xs);
  color: #333;
}

/* リストアイテムの間隔 */
li {
  margin-bottom: 0.5rem;
}

/* pre, code の余白調整 */
pre,
code {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  font-family: 'Courier New', Courier, monospace;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow-x: auto;
}

/* テーブルの上下余白 */
table {
  margin: 1.5rem 0;
}

/* ボタン系（必要なら） */
button {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  background-color: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #000;
}

/* ヘッダー */
header {
  height: clamp(60px, 4vw, 100px);
  padding-top: clamp(8px, 1vw, 24px);
  padding-bottom: clamp(8px, 1vw, 24px);
  padding-left: 1rem;
  background-color: #fff;
  border-bottom: 1px solid #111;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
}

header p {
  margin: 5px 0 0;
  color: #666;
  font-size: var(--font-sm);
}

.site-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #111;
  text-decoration: none;
}

/* ナビゲーション */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #222;
  font-size: var(--font-sm);
  font-weight: 600;
  padding: 15px 20px;
  transition: background 0.2s ease;
}

/* ハンバーガーボタン */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #111;
  cursor: pointer;
}

/* スクリーンリーダー用テキスト */
.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ページローダー */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* * * * * * * * *
 * top page
 * Hero Section 
 * * * * * * * * */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
  margin-top: 0;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#hero-text {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  margin-top: 0;
}

.hero-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
  color: #000;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.hero-left {
  width: 60%;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
  color: #111;
  z-index: 1;
}

.hero-right {
  width: 50%;
  position: relative;
  background: #0a0a0a;
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
  margin-left: -10%;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transform-origin: center;
  opacity: 1;
  transition: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.white-cover {
  position: absolute;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2;
  transform: translateX(0);
}

.curtain-animate {
  animation: curtainOpen .8s linear forwards;
}

@keyframes curtainOpen {
  0% {
    transform: translateX(0);
    /* 画面右半分を覆う位置から */
  }

  100% {
    transform: translateX(100%);
    /* 右側にスライドアウト */
  }
}

@keyframes slideReveal {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

/* スクロールアイコン */
.scroll-icon {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  color: #fff;
  animation: scrollBounce 2s infinite;
  opacity: 0.8;
  pointer-events: none;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.service,
.about,
.blog,
.contact,
featured-page {
  padding: 6rem 0;
}

/* Service Section */
.section-inner {
  position: relative;
  margin: auto;
  max-width: clamp(var(--content-min-width),
      var(--content-preferred-width),
      var(--content-max-width));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 2fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-item {
  background: #fff;
  transition: all 0.2s ease;
}

.service-item:hover {
  border-color: #ddd;
  transform: translateY(-2px);
}

.service-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f8f8f8;
}

.service-number {
  font-size: 0.8rem;
  color: #999;
  min-width: 20px;
}


.service-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  height: auto;
  min-height: 160px;
}

.service-image {
  width: 40%;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-text {
  width: 60%;
  padding: 1rem;
  background: white;
  clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
}

.service-category {
  color: #888;
  display: block;
}

.service-name {
  font-size: var(--font-sm);
  font-weight: bold;
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.service-description {
  color: #333;
  line-height: 1.6;
  font-size: var(--font-xs);
  margin-bottom: .5rem;
}


/* About Section */
.about {
  background: #fafafa;
  padding: 5rem 2rem;
}

.about-content {
  max-width: clamp(var(--content-min-width),
      var(--content-preferred-width),
      var(--content-max-width-auto));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-text-content {
  padding-left: var(--space-xl);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
}

.about-vision {
  font-size: var(--font-lg);
  font-weight: 700;
  line-height: 1.4;
  color: #000;
  margin-bottom: 2rem;
}

/* スクロールセクション */
.scroll-horizontal-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroll-horizontal {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 38s linear infinite;
}

.scroll-item {
  display: inline-block;
  margin-right: 2rem;
  width: 15vw;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  animation: sink-under 5s infinite ease-in-out;
}


@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes sink-under {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(0.3em);
    /* 少し潜るように */
    opacity: 0.7;
  }
}


/* Blog Section */
.blog-list {
  margin-top: 3rem;
}

.blog-item {
  display: flex;
  padding: 2rem 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
  gap: 2rem;
}

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

.blog-date {
  font-size: 0.9rem;
  color: #999;
  min-width: 100px;
}

.blog-category {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 80px;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  line-height: 1.6;
  flex: 1;
}

.blog-title:hover {
  color: #000;
}

/* Contact Section */
.contact {
  background: #333;
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}

.contact .section-title,
.contact .section-subtitle {
  color: #fff;
}

.contact-button {
  display: inline-block;
  padding: 1rem 3rem;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  margin-top: 2rem;
}

.contact-button:hover {
  background: #fff;
  color: #000;
}

/* メインコンテンツとサイドバー */
main {
  display: flex;
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: #f2f2f2;
}

/* 記事コンテンツ */
.content-area {
  max-width: 100%;
}

article {
  margin-bottom: 40px;
  padding-bottom: 20px;
}

article h2 {
  font-size: 1.8rem;
  margin-top: 0;
}

article h2 a {
  color: #0073aa;
}

article div {
  font-size: 1rem;
  color: #444;
}

article section {
  margin: 6.5rem 0;
}

/* サイドバー */
aside {
  width: 9rem;
  min-height: 105vh;
  position: fixed;
  left: 0;
  background-color: #fff;
  padding: 20px;
  border-right: 1px solid #111;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.03);
  z-index: 999;
}

.widget {
  padding: 20px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.widget-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 5px;
}

/* フッター */
footer {
  background-color: #f7f7f7;
  text-align: center;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #666;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.fixed-contact-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--Mcolor);
  color: #fff;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.fixed-contact-button:hover {
  background-color: #8bbd35;
}

/* 見出し共通 */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 700;
  line-height: 1.2;
}

/* コンテンツ領域 */
.content-area {
  width: 100%;
  max-width: 100%;
  line-height: 1.8;
}

/* 記事・固定ページ本文 */
article,
.page-content {
  margin-bottom: 3em;
  color: #444;
}

.type-page {
  padding: 0 5rem;
}

/* タイトル */
article h1,
.page-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
  color: #111;
  margin-top: 3em;
}


/* 日付・投稿者情報 */
.post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1em;
}

/* アイキャッチ画像 */
.post-thumbnail {
  margin-bottom: 1.5em;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* section */
.block-margin {
  margin-bottom: 4rem;
}

/* imgエリア */
.img-area img {
  width: 100%;
}

/* コメントエリア */
.comments-area {
  margin-top: 3em;
  border-top: 1px solid #ddd;
  padding-top: 2em;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1em;
}

.comment-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.comment-list li {
  margin-bottom: 1.5em;
  border-bottom: 1px solid #eee;
  padding-bottom: 1em;
}

.comment-author {
  font-weight: 600;
  color: #333;
}

.comment-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5em;
}

.comment-content {
  font-size: 1rem;
  color: #444;
}

.comment-form label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.comment-form button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  padding: 0.75em 1.5em;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.comment-form button:hover,
.comment-form button:focus {
  background-color: #005f8d;
  outline: none;
}

/* 404ページ */
.error-404 {
  text-align: center;
  margin-top: 6em;
  padding: 0 20px;
}

.error-404 h1 {
  font-size: 2.5rem;
  color: #d9534f;
  margin-bottom: 0.5em;
}

.error-404 p {
  color: #666;
  margin-bottom: 1.5em;
}

.error-404 a {
  font-weight: 700;
  color: #0073aa;
}

/* 検索フォーム */
.search-form {
  margin-bottom: 1.5em;
}

.search-form input.search-field {
  width: 75%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  vertical-align: middle;
}

.search-form button.search-submit {
  width: 23%;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #0073aa;
  border-left: none;
  background-color: #0073aa;
  color: white;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  vertical-align: middle;
}

.search-form button.search-submit:hover,
.search-form button.search-submit:focus {
  background-color: #005f8d;
  outline: none;
}

.pagination {
  text-align: center;
  margin: 40px 0;
  font-size: 1rem;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 6px;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0073aa;
  text-decoration: none;
  cursor: pointer;
}

.pagination .page-numbers.current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  cursor: default;
}

.pagination .page-numbers:hover:not(.current) {
  background-color: #e1f0ff;
  border-color: #0073aa;
}

/* テーブル全体のベース */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

/* ヘッダー行 */
thead tr {
  background-color: #0073aa;
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

/* ヘッダーカラムのセル */
thead th {
  padding: 12px 16px;
}

/* ボディのセル */
tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e1e1e1;
  font-size: 0.95rem;
  color: #333333;
}

/* 最後の行のボーダーを消す */
tbody tr:last-child td {
  border-bottom: none;
}

/* 行のホバー効果 */
tbody tr:hover {
  background-color: #f0f7ff;
}

/* 奇数行の背景色を薄く変える（ストライプ） */
tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

/* レスポンシブ対応：小さい画面ではスクロールできるように */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.featured-pages {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.featured-pages h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.article-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.article-card img {
  width: 100%;
  height: auto;
}

.article-card .text-content {
  padding: 20px;
}

.article-card h3 {
  font-size: 1.3rem;
  margin: 0.5em 0;
}

.article-card p {
  color: #555;
  line-height: 1.6;
}

.featured-pages,
.blog-posts {
  margin-bottom: 60px;
}

.featured-pages h2,
.blog-posts h2 {
  font-size: 1.6rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
  color: #111;
}

.blog-posts article {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.blog-posts h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.blog-posts h3 a {
  text-decoration: none;
  color: #0073aa;
}

.sample-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.sample-list li {
  margin-bottom: 1rem;
}

.sample-list a {
  color: #007acc;
  font-weight: 600;
  text-decoration: none;
}

/* WORKS */
.portfolio-list {
  margin-top: 19rem;
}

.sample-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 横幅固定 */
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 2rem 2rem 0;
  position: relative;
  transition: min-height 0.4s ease;
}

.sample-item {
  border: 1px solid #ddd;
  overflow: hidden;
  background-color: #fff;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 2s ease 0.6s, transform 0.6s ease;
  will-change: opacity, transform;
  padding: var(--space-sm);
}

.sample-item.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.4s ease;
}

.sample-item.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.sample-item.fade-in {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.sample-item:hover {
  transform: translateY(-4px);
}

.sample-item img {
  width: 100%;
  height: auto;
  display: block;
}

.sample-item p {
  font-size: var(--font-xs);
}

.page-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  margin-top: -3rem;
}

.filter-menu {
  position: fixed;
  top: 6rem;
  left: 5rem;
  background: #fff;
  z-index: 9999;
  border-radius: 15px;
  font-weight: 600;
}

.filter-menu li {
  cursor: pointer;
  padding: 0.5em 1em;
  display: inline-block;
  transition: 0.3s;
}

.filter-menu li.active {
  background-color: #111;
  color: #fff;
  border-radius: 5px;
}

.vertical-menu ul {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.vertical-menu ul li {
  margin: 1rem 0;
}

.vertical-text {
  writing-mode: vertical-rl;
  font-size: 1.2rem;
  margin-top: 2rem;
}

.main-content {
  flex: 1;
}

.main-title {
  font-size: 3rem;
  letter-spacing: 0.1em;
}

.sub-title {
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.description {
  margin: 2rem 0;
  line-height: 2;
}

.filter-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 2rem 0;
  list-style: none;
  font-size: 0.9rem;
}

.filter-menu ul li {
  cursor: pointer;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.3rem;
  font-size: clamp(0.6rem, 2.3vw, 1rem);
}

.filter-menu ul li a:hover {
  text-decoration: none;
}

.vertical-label {
  position: fixed;
  z-index: 0;
  top: 3%;
  right: 1%;
}

.vertical-label h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Yuji Mai", serif;
  font-size: 5.4rem;
  font-weight: normal;
  letter-spacing: 0.2em;
  color: #333;
  margin-top: auto;
  margin-bottom: auto;
  opacity: .3;
}

.vertical-image {
  position: fixed;
  top: 9rem;
  right: -3rem;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: .5;
  pointer-events: none;
  zoom: 100%;
}

.vertical-image img {
  height: 400px;
  width: auto;
}

.sidebar-nav ul {
  padding-top: 6rem;
  list-style: none;
  font-size: 1.8rem;
}

/* モックアップ */
.mockup-section {
  margin-top: 18rem;
  padding-top: 2rem;
}

.mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 3rem auto;
  max-width: 100%;
}

.mockup-pc-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

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

.iframe-scaler {
  position: absolute;
  top: 4.35%;
  left: 11.15%;
  width: 77.8%;
  height: 83.88%;
  border: none;
  z-index: 2;
  pointer-events: auto;
  transition: opacity 0.3s ease;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  pointer-events: none;
  border-radius: 3px;
}
/*
.mockup-iframe {
  width: 1556px;
  height: 997px;
  transform: scale(0.4);
  transform-origin: top left;
  border: none;
  pointer-events: auto;
}
*/


.mockup-iframe {
  width: 100%;
  height: 100%;
  transform: none;
}
.mockup-iframe::-webkit-scrollbar {
  display: none;
}

/* デフォルトでは画像は非表示、iframeは表示 */
.iframe-replace-img {
  display: none;
  width: 100%;
  height: auto;
}

.mockup-mobile-wrapper img {
  margin-right: 0.5rem;
  width: 100%;
}

.tab-img {
  width: 274px;
}

.smt-img {
  width: 139px;
}

/* コンテンツエリア */
.project-name {
  font-size: var(--font-lg);
}

.project-link {
  font-size: var(--font-xs);
}

.section-wrap {
  background-color: #f8f8f6;
}

.section-inner {
  margin: 0 auto;
  padding: 5rem 2rem;
  color: #333;
}

.page .section-inner {
  max-width: 1200px;
  margin: 0 auto;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.section-inner h2 {
  font-size: var(--font-xl);
  letter-spacing: 2px;
}

.section-title {
  font-size: var(--font-xxl);
}

.hero-section {
  position: relative;
  margin: 60px auto 100px;
  padding: 140px 0 100px;
  background-image: url(img/mockup-leto-full.png);
  background-position: right 0% bottom 23%, top center;
  background-size: 48%, 1100px;
  background-repeat: no-repeat;
}

.hero-text {
  flex: 0 1 55%;
  z-index: 1;
}

.page .hero-text {
  padding: 1rem;
}

.features-section {
  background-color: var(--Mcolor);
  padding: 60px 20px;
  color: #fff;
}

.page .section-inner h3 {
  font-size: var(--font-lg);
  margin-top: 1rem;
  margin-bottom: 5rem;
  color: #333;
}

.page .features-section h3 {
  color: #fff;
}

.section-inner h3 span {
  display: block;
  font-size: var(--font-md);
  font-style: normal;
  font-weight: normal;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}


/* フォームエリア全体 */
.form-area {
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.input-box {
  margin-bottom: 24px;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 1rem;
}

.required {
  color: #d00;
  font-size: 0.85rem;
  margin-left: 4px;
}

.form-space {
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

textarea {
  height: 150px;
  resize: vertical;
}

.submit-button input[type="submit"] {
  background-color: var(--Mcolor);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-button input[type="submit"]:hover {
  background-color: #8bbd35;
}

@media screen and (max-width: 600px) {
  .form-area {
    padding: 30px 16px;
  }

  .submit-button input[type="submit"] {
    width: 100%;
  }
}

.page .hero-section {
  position: relative;
  margin: 60px auto 100px;
  padding: 140px 0 100px;
  background-image: url(img/mockup-leto-full.png);
  background-position: right 0% bottom 23%, top center;
  background-size: 48%, 1100px;
  background-repeat: no-repeat;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.page .hero-text p {
  font-size: var(--font-sm);
}

.page .hero-image {
  display: none;
}

.feature-box {
  background: #fff;
  color: #333;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.feature-box strong {
  color: var(--Mcolor);
  font-size: var(--font-lg);
  text-align: center;
  display: block;
  padding-top: 1rem;
  margin-bottom: 1rem;
}

.page .feature-box {
  border-radius: 3px;
  padding: 2rem;
  position: relative;
  padding-bottom: 4rem;
}

.feature-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #a3d544;
  margin-bottom: 10px;
  display: block;
}

.page .feature-number {
  font-size: 3.4rem;
  font-style: italic;
  font-weight: bold;
  color: var(--Mcolor);
  margin-bottom: 10px;
  display: block;
  position: absolute;
  bottom: -1rem;
  right: 2px;
  opacity: .3;
  line-height: 1;
}


span.num {
  font-size: 6rem;
}

.merit-section {
  background-color: #f8f8f6;
  padding: 60px 20px;
}

.merit-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  background: #fff;
  padding: 20px;
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  gap: 20px;
  flex-wrap: wrap;
}

.merit-box .num {
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  margin-right: 1rem;
  color: var(--Mcolor);
}

.merit-box-text {
  flex: 1 1 65%;
}

.merit-box-img {
  flex: 0 1 30%;
  text-align: center;
}

.merit-box-img img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.mb-text {
  padding-bottom: 10px;
  vertical-align: bottom;
  display: inline-block;
  color: var(--Mcolor);
  font-weight: 600;
  font-size: 1.4rem;
}

.mb-text2 {
  display: block;
}

.mb-text2 small {
  display: block;
  margin-top: 8px;
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
}

.content-section {
  padding: 60px 20px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.content-card {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 45%;
}

.case-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.price-table-wrap {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.price-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.plan {
  flex: 1 1 280px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.plan-head {
  background-color: #f5f7fa;
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid #e6e6e6;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.plan-price {
  font-size: var(--font-lg);
  font-weight: bold;
  color: #0066cc;
}

.plan-detail {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: #555;
}

.plan-detail span {
  position: relative;
  padding-left: 28px;
  padding-right: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #f0f4f8;
  border-radius: 6px;
  display: block;
  line-height: 1.5;
}

.plan-detail span::before {
  content: '✔';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-weight: bold;
  font-size: 0.9rem;
}

.plan-price span {
  font-size: var(--font-sm);
}

.plan-samples {
  padding: 0 1.4rem 1rem;
}

.plan-samples a {
  color: #0066cc;
  font-weight: 600;
}

.plan-url {
  margin: 1rem 0 0;
}

.plan-url a {
  display: inline-block;
  background-color: #0072ce;
  color: #fff;
  padding: 0.5rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 114, 206, 0.2);
}

.plan-url a:hover {
  background-color: #005fa3;
  transform: translateY(-2px);
}

/* LP */
body.page-template-lp-wp {
  background-color: #f8f8f4;
  background-image: url('img/zara.webp');
  background-size: 24%;
  background-repeat: repeat;
  color: #1a1a1a;
  font-family: "Inter", "Helvetica Neue", sans-serif;
  line-height: 1.9;
}

/* 汎用 */
.lp-all {
  margin: 0 auto;
  padding: 5vw;
  background: rgba(255, 255, 255, .97);
}

/* ヒーロー */
.hero-section {
  padding: 6rem 2rem;
  border-radius: 1rem;
  text-align: center;
  margin-bottom: 4rem;
}

.hero-text h2 {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #444;
}

.contact-button {
  background: #222;
  color: #fff;
  padding: 0.9rem 2rem;
  font-weight: bold;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background: #444;
  transform: translateY(-2px);
}

/* セクション共通 */
.live-section {
  margin-bottom: 6rem;
}

.lp-section-inner {
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  border-left: 5px solid #333;
  padding-left: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: #666;
  line-height: 1.8;
}

/* グリッドセクション */
.layout-grid,
.section-grid,
.mockup-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.layout-item,
.section-item,
.mockup-pc-wrapper {
  flex: 1 1 280px;
  text-align: center;
}

.layout-item img,
.section-item img,
.mockup-img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* プラン表 */
.plan {
  margin-bottom: 3rem;
}

.plan-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.plan-name {
  font-weight: bold;
  font-size: 1.4rem;
}

.plan-price {
  font-size: 1.2rem;
  color: #0072ce;
}

.plan-detail span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.plan-url a {
  display: inline-block;
  background: #0072ce;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.plan-url a:hover {
  background: #005fa3;
}

/* モックアップボックス */
.mockup-section h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.mockup-link-overlay {
  display: inline-block;
  margin-top: 0.8rem;
  color: #0072ce;
  font-weight: bold;
  text-decoration: underline;
}

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

  .layout-grid,
  .section-grid,
  .mockup-wrapper {
    flex-direction: column;
  }
}


@media (max-width: 1024px) {
  .merit-box-text {
    flex: 1 1 100%;
  }

  .merit-box-img {
    flex: 1 1 100%;
    margin-top: 20px;
  }

  .merit-box-img img {
    max-width: 300px;
    margin: 0 auto;
  }

  /* works tab */
  .portfolio-list {
    margin-left: 2rem;
    margin-top: 5rem;
  }

  .filter-menu {
    position: static;
    padding-top: 150px;
  }

  .filter-menu ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
    margin: 0 auto;
    justify-items: center;
    gap: 1rem;
    ;
  }

  .filter-menu li {
    margin: 0;
    list-style: none;
    font-size: 0.9rem;
  }

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

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }

  aside {
    display: none;
  }

  .vertical-label h2 {
    margin: 0;
  }

  .page .content-area {
    margin-left: 0;
    padding: 120px 0 80px;
  }

  .nav-menu {
    flex-direction: column;
  }

  .nav-menu li a {
    padding: 12px 15px;
  }

  footer {
    position: static;
  }

  /* hero layout */
  .hero-content {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    width: 100%;
    clip-path: none;
    margin: 0;
  }

  .hero-right {
    height: 70vh;
  }

  /* works tab */
  .filter-menu {
    position: static;
    padding-top: 50px;
  }

  /* ポートフォリオ個別ページ */
  .mockup-pc-wrapper,
  .mockup-mobile-wrapper {
    width: auto;
  }

  .mockup-iframe {
    display: none;
  }

  .mockup-iframe {
    display: none;
  }

  .iframe-replace-img {
    display: block;
  }

  .mockup-mobile-wrapper img {
    width: 80%;
  }

  .sample-list {
    grid-template-columns: repeat(2, 1fr);
    /* タブレットなどで2列 */
  }
}

/* モバイル用（max-width 820px） */
@media (max-width: 820px) {
  header {
    align-items: anchor-center;
    height: auto;
    padding: 16px;
  }

  #menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #0073aa;
    position: absolute;
    top: 80px;
    right: 20px;
    width: 200px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    margin: 10px 0;
  }

  .site-logo {
    margin-bottom: 10px;
  }

  .page .hero-section {
    display: block;
  }

  .section-inner h2 {
    font-size: var(--font-xxl);
  }

  .page .hero-text p {
    font-size: var(--font-md);
  }

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

  .hero {
    position: relative;
  }

  #hero-text,
  .hero-tagline,
  .hero-description {
    color: #fff;
  }

  .hero-right {
    height: 100vh;
  }

  .hero-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  .hero-left.show {
    opacity: 1;
  }

  #hero-text {
    white-space: pre-line;
  }

  .about-content {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 2rem;
  }

  .scroll-item {
    width: 40vw;
  }

  .section-inner {
    padding: 1rem;
  }

  .service {
    padding: 1rem 0;
  }

  .about {
    padding: 0 1rem;
  }

  .about-text-content {
    padding-left: var(--space-sm);
  }

  /* WORKS */
  article section {
    margin: 1.5rem 0;
  }

  .mockup-section {
    margin-top: 0;
  }

  .project-content-wrapper {
    padding: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .page .hero-section {
    padding: 4rem 0 0;
    margin-bottom: 2rem;
  }

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

  .hero-section {
    flex-direction: column;
    background-size: 80%, cover;
    background-position: center bottom;
  }

  .hero-text {
    flex: 1 1 100%;
    text-align: center;
    background: rgba(255, 255, 255, .7);
  }

  .section-inner h3 {
    font-size: 3rem;
  }

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

  .hero-text {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media screen and (max-width: 600px) {
  .merit-section {
    padding: 40px 16px;
  }

  .merit-box {
    padding: 16px;
  }

  .mb-text2 small {
    font-size: 0.9em;
  }

  .fixed-contact-button {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 0.9rem;
    text-align: center;
  }
}

@media screen and (max-width: 430px) {
  .sample-list {
    grid-template-columns: repeat(1, 1fr);
    /* スマホは1列 */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }
}