/*! normalize.css v3.0.2 | MIT License | git.io/normalize */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

@charset "UTF-8";

/* --------------------------------
 * base
 * -------------------------------- */
html {
  font-size: 62.5%;
}
body {
  position: relative;
/*  background: #F79C28 url('../images/た2.png') no-repeat fixed center top; */
  background-attachment: fixed;
  background-size: cover;
  color: #fff;
  text-align: center;
  font-size: 1.4rem;
/*  font-family: "メイリオ";*/
  font-family: 'Raleway', sans-serif;
/*
  margin: 0;
  padding: 0;
*/
}
.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px; /* gapプロパティを使用 */
  padding: 20px 0;
}

.instagram-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 50px;
  color: white;
  font-size: 14px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease; /* 色が滑らかに変わるようにする */
}

.instagram-btn i {
  margin-right: 8px;
}

.instagram-btn.red {
  background-color: red;
}

.instagram-btn.blue {
  background-color: blue;
}

.instagram-btn.yellow {
  background-color: yellow;
  color: black; /* 黄色の背景では黒い文字が見やすい */
}

.instagram-btn.green {
  background-color: green;
}

.instagram-btn.purple {
  background-color: purple;
}

.instagram-btn.white {
  background-color: white;
  color: #ddcc00;
}


/* ホバー時の背景色を指定 */
.instagram-btn.red:hover {
  background-color: darkred;
}

.instagram-btn.blue:hover {
  background-color: darkblue;
}

.instagram-btn.yellow:hover {
  background-color: gold;
}

.instagram-btn.green:hover {
  background-color: darkgreen;
}

.instagram-btn.purple:hover {
  background-color: darkmagenta;
}

@media (max-width: 768px) {
  .social-buttons {
    flex-direction: column;
  }

  .instagram-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

.img-box {
  top: 30px; /* 上辺をナビゲーションバーの下に設定 */
  right: 0;
  width: 100vw;
  height: calc(100vh + 170px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.img-box>div{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 10;
  opacity: 0;
  animation-name: fade;
  animation-duration: 30s;
  animation-iteration-count: infinite;
}

@keyframes fade {
  0%{
    opacity: 0;
  }
  20%{
    opacity: 1;
  }
  80%{
    opacity: 0;
    transform: scale(1.2);
  }
  100%{
    z-index: 0;
    opacity: 0;
  }
}

.img-box>div:nth-of-type(1){
  background-image: url('../images/tan1 .webp');
}
.img-box>div:nth-of-type(2){
  background-image: url('../images/aka-top-oka .webp');
  animation-delay: 6s;
}
.img-box>div:nth-of-type(3){
  background-image: url('../images/kou-topz .webp');
  animation-delay: 12s;
}
.img-box>div:nth-of-type(4){
  background-image: url('../images/%E3%82%841%20.webp');
  animation-delay: 18s;
}
.img-box>div:nth-of-type(5){
  background-image: url('../images/ル1 .webp');
  animation-delay: 24s;
}

@media (max-width: 768px) {
  .img-box {
    height: calc(100vh - 200px);
  }
}

#logo {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 300px;
  height: 120px;
  background: url('../images/asokalogox.png') no-repeat;
  background-size: 100% 100%;
  background-position: left bottom;
  z-index: 11;
  transition: height 0.3s ease, background-size 0.3s ease, background-position 0.3s ease;
}
#logo2, .mini-title {
    display: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}
  
.heading {
  position: relative;
  display: inline-block;
  margin: 30px 0 15px;
  padding-bottom: 5px;
  letter-spacing: 2px;
  font-size: 4rem;
  font-family: "メイリオ", sans-serif;
}

.heading::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  bottom: 8px;
  background-color: #333;
}

.site-title {
  position: fixed;
  top: 90px;
  left: 28px;
  margin: 50px 0 40px;
  font-size: 2.0rem;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .header-logo {
        display: none;
    }
}

.latest-news {
    background-color: #f9f9f9;
    color: #333;
    padding: 40px 20px;
}

.latest-news .heading {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
}
.iframe-container {
  display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  font-size: 1.5em;
  width: 100%;
  margin: 0 auto;
}

.philosophy {
  padding: 60px 0px;
  background-color: #f5f5f5;
  color: #333355;
}
.philosophy-text1 {
  margin: 10px 0;
  line-height: 1.5;
  font-size: 55px;
}
.philosophy-text2 {
  margin: 10px 0;
  line-height: 1.5;
  font-size: 43px;
}
.philosophy-text3 {
  margin-top: 10px;
  text-indent: 30px;
  padding-left: 150px;
  padding-right: 150px;
  text-align: left;
  font-size: 18px;
}
.indent {
  display: block;
  margin-left: 20px;
}

.more-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 5px 30px;
  background-color: #FC9624;
  color: #f5f5f5;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px;
  transform: scaleX(1.3) scaleY(0.8);
}

.more-btn:hover {
  background-color: #Ffca84;
}

.hide {
  display: none;
}

.works {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #f5f5f5;
  background-image: url('../images/あそ5 .webp');
  background-size: cover;
}
.works .heading::before {
  background-color: #f5f5f5;
}
.works-wrapper {
  display: flex; 
  justify-content: center; 
  padding: 80px;
}
.work-box {
  flex: 0 0 20%;
  margin: 10px; 
  position: relative;
  overflow: hidden;
}

.work-image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease-in-out;
}

.work-box:hover .work-image {
  transform: scale(1.1);
}

.skills {
  position: relative;
  padding: 60px 0;
  background-color: #FEE6C2;
  color: #f5f5f5;
  background-image: url('../images/skillo .webp');
  background-size: cover;
  z-index: 1;
}
.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: -1;
}
.skills-wrapper {
  display: table;
  width: 100%;
  margin: 50px auto 0;
  table-layout: fixed;
}
.skill-box {
  display: table-cell;
  width: 400px;
}
.skill-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  border: 4px solid;
  border-radius: 50%;
  color: #f5f5f5;
  font-size: 8rem;
  line-height: 142px;
}
.skill-title {
  margin: 0 20px 20px;
  font-size: 2rem;
}
.skill-text {
  margin: 0 20px;
  text-align: left;
  padding: 0 30px;
  line-height: 1.5;
}
.skills .heading::before {
  background-color: #f5f5f5;
}

.footer {
  padding: 12px 0;
  font-size: 1.3rem;
  background-color: #FC9624;
  color: #f5f5f5;
}

@media (max-width : 1247px ){
  body {
    background-image: none;
    margin: 0;
  }
  .header-right .menu-item {
        margin-left: 10px;
    }
    .header-right a {
        padding: 0 5px;
        margin-left: 10px;
    }
    .submenu a {
        padding: 5px;
    }
}
@media (max-width: 768px) {
    #logo {
        display: none;
    }
    #logo2 {
      display: none; /* Hide on mobile */
      position: absolute;
      top: 50px;
      left: 20px;
      width: 150px;
      height: 60px;
      background: url('../images/asokalogox.png') no-repeat;
      z-index: 11;
      background-size: 100% 100%;
      background-position: left bottom;
    }

    .mini-title {
        display: block;
        position: absolute;
        top: 110px;
        left: 20px;
        padding: 0;
        margin: 0;
        border: 0;
        color: #f5f5f5;
        font-size: 20px;
        font-weight: bold;
        z-index: 10000;
    }
    
    body {
      font-size: 1.3rem;
    }
    .site-title {
      display: none;
    }

    .philosophy-text1 {
      font-size: 30px;
    }
    .philosophy-text2 {
      font-size: 23px;
    }
    .philosophy-text3 {
      padding: 10px 20px 0;
      font-size: 18px;
    }

    .works-wrapper {
        flex-direction: column;
      }
      .work-box {
        width: 100%;
      }
    .skills-wrapper,
    .skill-box {
      display: block;
    }
    .skill-box {
      margin: 40px auto;
      width: 100%;
    }
    .skill-icon {
      width: 150px;
      height: 150px;
      font-size: 8rem;
      line-height: 142px;
    }
    .skill-title {
      font-size: 3rem;
    }
    .skill-text {
      font-size: 2rem;
    }

    .contact-form {
      width: 80%;
    }
    .social-buttons {
      flex-direction: column;
    }
    .instagram-btn {
      width: 100%;
      margin-bottom: 10px;
    }
}

/* --- ADDED STYLES --- */

/* Hamburger Icon & Animation */
.menu-toggle {
    width: 44px;
    height: 44px;
    position: relative;
}

.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    margin: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle-bar:nth-child(1) {
    top: 15px;
}

.menu-toggle-bar:nth-child(2) {
    top: 21px;
}

.menu-toggle-bar:nth-child(3) {
    top: 27px;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Hide logo2 on mobile */
@media (max-width: 768px) {
    #logo2 {
        display: none;
    }
}


/*
@media (max-width: 923px) {
    .header-right .menu-item {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}
*/
@media (min-width: 924px) {
    .menu-toggle {
        display: none;
    }
}

/*
@media (max-width: 923px) {
    .header-right .menu-item {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
}
*/
@media (min-width: 924px) {
    .menu-toggle {
        display: none;
    }
}

@charset "utf-8";

/* =================================================================
 * header-menu.css
 * 全ページ共通のヘッダーとナビゲーションメニューのスタイル
 * ================================================================= */

/* --------------------------------
 * header
 * -------------------------------- */
.header {
    height: 56px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fc9624;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 子要素を両端に配置 */
    padding: 0 20px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
}

/* --------------------------------
 * PC Navigation
 * -------------------------------- */
.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* PCでは横並び */
}

.menu-item {
    position: relative;
    margin-left: 15px;
}

.menu-item > a {
    display: block;
    line-height: 56px;
    padding: 0 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-item > a:hover {
    font-weight: bold;
    transform: scale(1.05);
}

/* PC Submenu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fc9624;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1001;
    min-width: 180px;
    list-style: none;
    padding: 5px 0;
    border-radius: 4px;
}

.menu-item:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    line-height: 1.5;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: #f5a623;
}


/* --------------------------------
 * Mobile Navigation (Hamburger Menu)
 * -------------------------------- */
.menu-toggle {
    display: none; /* PCでは非表示 */
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002;
}

.icon-bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.icon-bar:nth-child(1) {
    top: 14px;
}
.icon-bar:nth-child(2) {
    top: 21px;
}
.icon-bar:nth-child(3) {
    bottom: 14px;
}

/* Active state -> Close (X) icon */
.menu-toggle.is-active .icon-bar:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle.is-active .icon-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-active .icon-bar:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* --------------------------------
 * Responsive Styles (Breakpoint: 923px)
 * -------------------------------- */
@media (max-width: 923px) {
    .header {
        padding: 0 15px;
    }

    .header-logo {
        height: 35px;
    }

    /* Hamburger menu button */
    .menu-toggle {
        display: block; /* モバイルで表示 */
    }

    /* PC menu items */
    .menu-items {
        display: none; /* モバイルでは非表示 */
        flex-direction: column;
        position: absolute;
        top: 56px; /* header height */
        left: 0;
        width: 100%;
        background-color: #fc9624;
        z-index: 999;
        overflow-y: auto;
        max-height: calc(100vh - 56px);
        padding: 10px 0;
    }

    .menu-items.is-open {
        display: flex; /* JSでクラスを付与して表示 */
    }

    .menu-item {
        width: 100%;
        margin-left: 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .menu-item:last-child {
        border-bottom: none;
    }

    .menu-item > a {
        padding: 15px 0;
        line-height: 1.5;
    }

    /* Mobile Submenu */
    .submenu {
        display: none; /* JSで開閉を制御 */
        position: static;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        padding: 0;
        border-radius: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .menu-item.is-open > .submenu {
        display: block;
    }

    .submenu li a {
        padding: 12px 20px;
        text-align: center;
    }

    /* Submenu indicator */
    .menu-item-has-children > a {
        position: relative;
        padding-right: 30px; /* Arrow space */
    }

    .menu-item-has-children > a::after {
        content: '▼';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        transition: transform 0.3s;
    }

    .menu-item-has-children.is-open > a::after {
        transform: translateY(-50%) rotate(180deg); /* Arrow up */
    }
}