/*
Theme Name: Simple Theme
Theme URI: https://example.com/simple-theme/
Author: Simple Theme Developer
Author URI: https://example.com/
Description: シンプルでモダンなコーポレートテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-theme
Tags: corporate, one-page, responsive, modern, clean
*/

:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;
  --border: 0 0% 0%;
  --input: 0 0% 90%;
  --primary: 0 0% 0%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 95%;
  --secondary-foreground: 0 0% 10%;
  --accent: 0 0% 95%;
  --accent-foreground: 0 0% 10%;
  --muted: 0 0% 95%;
  --muted-foreground: 0 0% 45%;
  --radius: 0.5rem;
}

/* Reset & Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-weight: 900;
  letter-spacing: -0.025em;
}

h2 {
  font-weight: 900;
  letter-spacing: -0.025em;
}

h3 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Layout */
.container {
  width: calc(100% - 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
  max-width: 1200px;
}


.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Header */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 30;
}

.site-title {
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0;
}

.site-title a {
  color: #111827;
  text-decoration: none;
    font-size: 1.5rem;
  }

/* ナビゲーション */
.site-navigation {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 500;
}

@media (min-width: 768px) {
  .site-navigation {
    gap: 2rem;
  }
}

.site-navigation a {
  text-decoration: none;
  color: #111827;
  transition: color 0.2s;
}

.site-navigation a:hover {
  color: #007b7b;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 30;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: #111827;
  transition: all 0.3s ease;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* モバイルナビゲーション用のオーバーレイ */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20;
}

/* Hero Section */
.hero-section {
  padding: 6rem 1.5rem;
  background-image: linear-gradient(to bottom, white, rgb(249, 249, 249));
  text-align: left;
}

.no-hero .hero-section {
  background-image: none;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 8rem 1.5rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  margin-bottom: 0rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  margin-bottom: 2.5rem;
  font-size: 1.125rem;
  color: rgb(75, 85, 99);
  max-width: 36rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition-property: background-color, border-color, color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
  cursor: pointer;
}

.button-primary {
  background-color: #007b7b;
  color: #ffffff;
  border: 1px solid #007b7b;
}

.button-primary:hover {
  opacity: 0.9;
}

.button-outline {
  background-color: transparent;
  border: 1px solid #007b7b;
  color: #007b7b;
}

.button-outline:hover {
  background-color: rgb(249, 249, 249);
}

/* Content */
.site-main {
}

.page-header {
  margin-bottom: 3rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.archive-description {
  color: #6b7280;
}

.archive-content {
  display: grid;
  gap: 2rem;
}

/* Post Navigation */
.post-navigation {
  margin: 3rem 0;
}

.nav-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.25rem;
}

.nav-title {
  font-weight: 600;
}

.posts-navigation {
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* Sections */
.section {
  padding: 4rem 0;
}

/* News Section */
.news-list {
  margin-bottom: 2rem;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.news-meta {
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.875rem;
  color: #6b7280;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

.news-title a {
  transition: color 0.2s ease;
}

.news-title a:hover {
  color: #007b7b;
  text-decoration: underline;
}

.news-more {
  text-align: right;
}

.button-text {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 500;
  position: relative;
}

.button-text:after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.button-text:hover:after {
  transform: translateX(0.25rem);
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
  }
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #007b7b;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

.bg-gray {
  background-color: rgb(243, 244, 246);
}

/* Cards */
.card {
  border: 1px solid black;
  border-radius: 0.25rem;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.card-text {
  font-size: 0.875rem;
  color: rgb(55, 65, 81);
  line-height: 1.625;
}

/* Company Info */
.company-info {
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgb(55, 65, 81);
}

.section .company-info p {
  margin-bottom: 0;
}

.company-info strong {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background-color: #f9fafb;
  padding: 3rem 0 1rem;
  color: #4b5563;
}

.footer-widgets {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-company-info h3,
.footer-nav h3 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: #ffffff;
}

.footer-company-info p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li {
  margin-bottom: 0.5rem;
}

.footer-nav ul li a {
  display: block;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav ul li a:hover {
  color: #007b7b;
}

.copyright {
  padding: 2rem 0;
  text-align: center;
}

.copyright p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 0;
}
  .button-group {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
  }
  
  /* モバイルヘッダーとナビゲーション */
  .site-header {
    position: relative;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .site-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: unset;
    height: 60%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    z-index: 25;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    height: 100vh;
  }
  
  .site-navigation.active {
    right: 0;
  }
  
  .nav-wrapper {
    width: 100%;
  }
  
  .front-page-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .front-page-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    display: block;
    font-size: 1rem;
  }
  
  /* 非トップページのメニュー */
  .menu-container {
    width: 100%;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
  }
  
  .nav-menu li {
    margin: 0;
    padding: 0;
  }
  
  .nav-menu li a {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    display: block;
    font-size: 1rem;
  }
  
  /* ハンバーガーメニューボタンのアニメーション */
  .menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* レスポンシブフッター */
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-company-info,
  .footer-nav {
    margin-bottom: 2rem;
  }
}

/* =====================================
   Mobile Header Menu – show submenus by default
====================================== */
@media (max-width: 768px) {
  .header-menu {
    display: block;
  }
  .header-menu > li {
    display: block;
    margin: 0; /* reset margin */
  }
  .header-menu .sub-menu {
    display: block;       /* override desktop hover hide */
    position: static;     /* reset absolute positioning */
    background: transparent;
    padding: 0 0 0 1rem;  /* indent */
    box-shadow: none;
  }
  .header-menu .sub-menu a {
    padding: 0.5rem 0;    /* narrower padding */
    font-size: 0.875rem;
  }
}

/* Blog and Template Parts Styles */
.entry-title {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.entry-title a {
  color: #000;
  text-decoration: none;
}

.entry-title a:hover {
  text-decoration: underline;
}

.entry-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.entry-content {
  margin-bottom: 0rem;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

/* Pagination Styling */
.posts-navigation,
.post-navigation {
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.nav-links {
  display: flex;
  justify-content: space-between;
}

.nav-previous,
.nav-next {
  max-width: 48%;
}

.nav-previous a,
.nav-next a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.nav-previous a:hover,
.nav-next a:hover {
  text-decoration: underline;
}

.nav-subtitle {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #6b7280;
}

/* Card Layout for Blog Posts */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-text {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-title {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-title .en {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: #000;
}

.section-title .ja {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #666;
}

/* Sidebar Styling */
.widget-area {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000;
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.widget li:last-child {
  border-bottom: none;
}

@media (min-width: 769px) {
  .site-main {
    width: 100%;
    margin: 0 auto;
  }
  
  .widget-area {
    width: 100%;
    margin: 4rem auto 0;
  }
  
  .site-footer {
    clear: both;
  }
}

/* =====================================
   Header Dropdown Sub-menu
====================================== */
.header-menu,
.header-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-menu > li {
  position: relative;
  display: inline-block;
  margin-right: 1.5rem;
}

.header-menu > li:last-child {
  margin-right: 0;
}

/* hide submenu until hover */
.header-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -140px;
  background: #ffffff;
  min-width: 10rem;
  padding: 0.5rem 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  z-index: 999;
}

.header-menu .sub-menu li { display: block; }

.header-menu li:hover > .sub-menu {
  display: block;
}

.header-menu .sub-menu a {
  padding: 0.5rem 1rem;
  display: block;
  white-space: nowrap;
  font-size: 0.875rem;
}

.header-menu .sub-menu a:hover {
  background-color: #f5f5f5;
}

/* =====================================
   Footer Nested List
====================================== */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu .sub-menu {
  list-style: none;
  margin-left: 1rem; /* インデント */
}

.footer-menu a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
}

.footer-menu a:hover {
  color: #007b7b;
}

/* Single Post Layout */

/* Archive List Layout - thumbnails horizontally aligned */
.archive .entry-article,
.blog .entry-article,
.home .entry-article {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.archive .entry-article .post-thumbnail,
.blog .entry-article .post-thumbnail,
.home .entry-article .post-thumbnail {
  flex: 0 0 160px;
  margin-bottom: 0;
}

.archive .entry-article .post-thumbnail img,
.blog .entry-article .post-thumbnail img,
.home .entry-article .post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.25rem;
}

.archive .entry-article .entry-content,
.blog .entry-article .entry-content,
.home .entry-article .entry-content {
  flex: 1;
  margin: 0;
}

.entry-article {
    margin: 2rem auto;
}

.single-post .entry-article {
    max-width: 800px;
    margin: 4rem auto;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-meta span:not(:last-child):after {
    content: ' | ';
    margin: 0 0.5em;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.entry-content {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
